From 661dac0cfb22094850593d630136327b4de51ecc Mon Sep 17 00:00:00 2001 From: Ingo Karkat Date: Fri, 13 Apr 2012 16:47:04 +0200 Subject: [PATCH] test-lib: Avoid eating leading whitespace in expected output. Currently, todo.sh produces no indented output, so this hasn't affected tests so far. I found this while testing one of my custom actions with the test-lib. By unsetting IFS, the read command won't strip off leading and trailing whitespace while parsing the test session definition. --- tests/test-lib.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test-lib.sh b/tests/test-lib.sh index b3022dd..35f4a2a 100644 --- a/tests/test-lib.sh +++ b/tests/test-lib.sh @@ -582,7 +582,7 @@ test_todo_session () { cmd="" status=0 > expect - while read -r line + while IFS= read -r line do case $line in ">>> "*)