summaryrefslogtreecommitdiff
path: root/tests/chgrp
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2003-10-21 16:07:47 +0000
committerJim Meyering <jim@meyering.net>2003-10-21 16:07:47 +0000
commit7e9a874be6c489e0633e9a28bedaa4a74cd5c2b9 (patch)
treed187f7320ddf4952c94dec774788dafd3650316b /tests/chgrp
parent71453277f05856bd8eeeda7109b4b9b7c384d208 (diff)
downloadcoreutils-7e9a874be6c489e0633e9a28bedaa4a74cd5c2b9.tar.xz
Don't fail when run with VERBOSE=yes.
Do `set +x' before starting the subshell from which we invoke chgrp. Otherwise, the output from the VERBOSE=yes-induced `set -x' would result in spurious differences.
Diffstat (limited to 'tests/chgrp')
-rwxr-xr-xtests/chgrp/basic3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/chgrp/basic b/tests/chgrp/basic
index 5c5a574c9..ee2f2b535 100755
--- a/tests/chgrp/basic
+++ b/tests/chgrp/basic
@@ -36,6 +36,9 @@ chgrp $g2 f || fail=1
chgrp $g2 f2 || fail=1
chgrp -R $g1 d || fail=1
+# Don't let verbose output interfere.
+test "$VERBOSE" = yes && set +x
+
(
chgrp -c $g1 f
chgrp -c $g2 f