diff options
author | Jim Meyering <meyering@redhat.com> | 2009-10-30 10:50:21 +0100 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2009-10-30 12:50:12 +0100 |
commit | 3c88587b2eadee11413f4207abbbf13af07c438d (patch) | |
tree | 79d45c03b5c6ba2520eeeb236170dbafef49fac7 /tests/chgrp | |
parent | 12a0a583f6fe3303bd9dfb30de4a5fe46e8e486f (diff) | |
download | coreutils-3c88587b2eadee11413f4207abbbf13af07c438d.tar.xz |
tests: factor 350 fail=0 initializations into test-lib.sh
Run this command to remove the factored-out "fail=0" lines.
perl -ni -e '/^fail=0$/ or print' $(g grep -l '^fail=0$')
* tests/test-lib.sh: Initialize fail=0 here, not in 300+ scripts.
* tests/...: nearly all bourne shell scripts
Suggested by Eric Blake.
Diffstat (limited to 'tests/chgrp')
-rwxr-xr-x | tests/chgrp/basic | 1 | ||||
-rwxr-xr-x | tests/chgrp/default-no-deref | 1 | ||||
-rwxr-xr-x | tests/chgrp/deref | 1 | ||||
-rwxr-xr-x | tests/chgrp/no-x | 1 | ||||
-rwxr-xr-x | tests/chgrp/posix-H | 1 | ||||
-rwxr-xr-x | tests/chgrp/recurse | 1 |
6 files changed, 0 insertions, 6 deletions
diff --git a/tests/chgrp/basic b/tests/chgrp/basic index 2c0d7fae6..4fad17606 100755 --- a/tests/chgrp/basic +++ b/tests/chgrp/basic @@ -24,7 +24,6 @@ fi . $srcdir/test-lib.sh require_membership_in_two_groups_ -fail=0 set _ $groups; shift g1=$1 diff --git a/tests/chgrp/default-no-deref b/tests/chgrp/default-no-deref index fc378dec4..dc7e9d00a 100755 --- a/tests/chgrp/default-no-deref +++ b/tests/chgrp/default-no-deref @@ -29,7 +29,6 @@ g2=$2 mkdir d && touch f && ln -s ../f d/s || framework_failure -fail=0 g_init=`stat --printf=%g f` chgrp -R $g2 d || fail=1 diff --git a/tests/chgrp/deref b/tests/chgrp/deref index d4f19ce71..1a20e05bf 100755 --- a/tests/chgrp/deref +++ b/tests/chgrp/deref @@ -38,7 +38,6 @@ test "$g" = $g2 || skip_test_ "your system doesn't support changing the owner or group" \ "of a symbolic link." -fail=0 chgrp $g1 f set _ `ls -ln f`; g=$5; test "$g" = $g1 || fail=1 diff --git a/tests/chgrp/no-x b/tests/chgrp/no-x index 3ec49e9e7..175c1b2b8 100755 --- a/tests/chgrp/no-x +++ b/tests/chgrp/no-x @@ -33,7 +33,6 @@ g2=$2 mkdir -p d/no-x/y || framework_failure chmod u=rw d/no-x || framework_failure -fail=0 # This must exit nonzero. chgrp -R $g2 d >/dev/null 2>out && fail=1 diff --git a/tests/chgrp/posix-H b/tests/chgrp/posix-H index c24aa3f24..87295d4e6 100755 --- a/tests/chgrp/posix-H +++ b/tests/chgrp/posix-H @@ -34,7 +34,6 @@ ln -s 1 1s || framework_failure ln -s ../3 2/2s || framework_failure chgrp -R $g1 1 2 3 || framework_failure -fail=0 chgrp --preserve-root -H -R $g2 1s 2 || fail=1 diff --git a/tests/chgrp/recurse b/tests/chgrp/recurse index d29a65118..b0f2e2701 100755 --- a/tests/chgrp/recurse +++ b/tests/chgrp/recurse @@ -28,7 +28,6 @@ set _ $groups; shift g1=$1 g2=$2 -fail=0 # chgrp -R should not traverse a symlink to a directory. mkdir d e |