summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJim Meyering <meyering@fb.com>2018-01-06 16:24:10 -0800
committerJim Meyering <meyering@fb.com>2018-01-06 21:20:48 -0800
commit915003de198a66ffe5a5692d875c185eb2b9e923 (patch)
tree5e9544e52cb531ee4698b6b5961b172fed157928 /tests
parent4a38f715f1fe171f6792f3044bd15d6a263b8c1c (diff)
downloaddiffutils-915003de198a66ffe5a5692d875c185eb2b9e923.tar.gz
tests: port tests/colors to some env-munging shell
* tests/colors: Also set PATH="$PATH" in env invocation.
Diffstat (limited to 'tests')
-rwxr-xr-xtests/colors3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/colors b/tests/colors
index 9c7021c..3215990 100755
--- a/tests/colors
+++ b/tests/colors
@@ -85,7 +85,8 @@ returns_ 1 diff --color=auto a b > out || fail=1
gen_exp_default > exp || framework_failure_
compare exp out || fail=1
-returns_ 1 env TERM=dumb diff ---presume-output-tty --color=auto a b > out \
+returns_ 1 env PATH=$PATH TERM=dumb \
+ diff ---presume-output-tty --color=auto a b > out \
|| fail=1
gen_exp_default > exp || framework_failure_
compare exp out || fail=1