From 198c55a64557c89f201ddea7cbcb14c09c400071 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Wed, 1 Feb 2017 23:06:29 -0800 Subject: [PATCH] tests: avoid false failure with some shells on debian, freebsd * tests/colors: Move the TERM=dumb setting into the code run by "returns_", since some shells do not propagate envvar setting through to a use of a function like this. That would cause this test to fail because results were colorized when they should not have been. Reported by Nelson Beebe. --- tests/colors | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/colors b/tests/colors index 4ca634d..9c7021c 100755 --- a/tests/colors +++ b/tests/colors @@ -85,7 +85,7 @@ returns_ 1 diff --color=auto a b > out || fail=1 gen_exp_default > exp || framework_failure_ compare exp out || fail=1 -TERM=dumb returns_ 1 diff ---presume-output-tty --color=auto a b > out \ +returns_ 1 env TERM=dumb diff ---presume-output-tty --color=auto a b > out \ || fail=1 gen_exp_default > exp || framework_failure_ compare exp out || fail=1 -- 2.9.3