diff options
author | Jim Meyering <meyering@fb.com> | 2017-02-01 23:06:29 -0800 |
---|---|---|
committer | Jim Meyering <meyering@fb.com> | 2017-02-01 23:06:29 -0800 |
commit | 198c55a64557c89f201ddea7cbcb14c09c400071 (patch) | |
tree | 3bb6346bcc6b02cc47c96788fc25a60444d43081 | |
parent | affa30def0d530022a03845372ec19c644f8f1ac (diff) | |
download | diffutils-198c55a64557c89f201ddea7cbcb14c09c400071.tar.gz |
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.
-rwxr-xr-x | tests/colors | 2 |
1 files changed, 1 insertions, 1 deletions
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 |