Browse files

test-lib: Avoid eating leading whitespace in expected output.

Currently, 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.
  • Loading branch information...
1 parent ebe6a40 commit 661dac0cfb22094850593d630136327b4de51ecc @inkarkat inkarkat committed Apr 13, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 tests/
@@ -582,7 +582,7 @@ test_todo_session () {
> expect
- while read -r line
+ while IFS= read -r line
case $line in
">>> "*)

0 comments on commit 661dac0

Please sign in to comment.