From: Andre Noll Date: Sun, 11 Sep 2011 01:02:41 +0000 (+0200) Subject: testsuite: Don't write ANSI escapes to test output files. X-Git-Tag: v0.4.9~12^2~4 X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=commitdiff_plain;h=784c2391535a896aff0e51bf3976b52bf9f06b71 testsuite: Don't write ANSI escapes to test output files. The say() function adds ANSI escape sequences for colors to the output if stdout is a tty. However, we don't want colors for output written to a file, so don't use say() in this case. --- diff --git a/t/test-lib.sh b/t/test-lib.sh index b7d675ea..f1bb8cf6 100644 --- a/t/test-lib.sh +++ b/t/test-lib.sh @@ -162,7 +162,7 @@ test_duration() test_expect_success() { (($# != 2)) && error "bug: not 2 parameters to test_expect_success()" - say >&3 "expecting success: $2" + echo >&3 "expecting success: $2" _test_run "$1" "$2" "success" echo >&3 "" } @@ -170,7 +170,7 @@ test_expect_success() test_expect_failure() { (($# != 2)) && error "bug: not 2 parameters to test_expect_failure()" - say >&3 "expecting failure: $2" + echo >&3 "expecting failure: $2" _test_run "$1" "$2" "failure" echo >&3 "" }