diff --git a/tests/test-lib.sh b/tests/test-lib.sh index 34cd9e4..efe8960 100644 --- a/tests/test-lib.sh +++ b/tests/test-lib.sh @@ -542,7 +542,7 @@ test_todo_session () { if [ $status = 0 ]; then test_expect_success "$1 $subnum" "$cmd > output && test_cmp expect output" else - test_expect_success "$1 $subnum" "$cmd > output || test $? = $status && test_cmp expect output" + test_expect_success "$1 $subnum" "$cmd > output ; test \$? = $status && test_cmp expect output" fi subnum=$(($subnum + 1)) @@ -560,7 +560,7 @@ test_todo_session () { if [ $status = 0 ]; then test_expect_success "$1 $subnum" "$cmd > output && test_cmp expect output" else - test_expect_success "$1 $subnum" "$cmd > output || test $? = $status && test_cmp expect output" + test_expect_success "$1 $subnum" "$cmd > output ; test \$? = $status && test_cmp expect output" fi fi }