From: Jim Meyering Date: Tue, 21 Oct 2003 16:07:47 +0000 (+0000) Subject: Don't fail when run with VERBOSE=yes. X-Git-Tag: v5.1.0~313 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7e9a874be6c489e0633e9a28bedaa4a74cd5c2b9;p=thirdparty%2Fcoreutils.git 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. --- diff --git a/tests/chgrp/basic b/tests/chgrp/basic index 5c5a574c97..ee2f2b535f 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