From 784c2391535a896aff0e51bf3976b52bf9f06b71 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Sun, 11 Sep 2011 03:02:41 +0200 Subject: [PATCH 1/1] 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. --- t/test-lib.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 "" } -- 2.39.2