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/chown | |
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/chown')
-rwxr-xr-x | tests/chown/basic | 1 | ||||
-rwxr-xr-x | tests/chown/deref | 1 | ||||
-rwxr-xr-x | tests/chown/preserve-root | 1 | ||||
-rwxr-xr-x | tests/chown/separator | 1 |
4 files changed, 0 insertions, 4 deletions
diff --git a/tests/chown/basic b/tests/chown/basic index 6708da0a9..95a9cd1d3 100755 --- a/tests/chown/basic +++ b/tests/chown/basic @@ -26,7 +26,6 @@ require_root_ touch f || framework_failure -fail=0 chown -R --preserve-root 0:1 f # Make sure the owner and group are 0 and 1 respectively. diff --git a/tests/chown/deref b/tests/chown/deref index 24d0f93e1..c609751de 100755 --- a/tests/chown/deref +++ b/tests/chown/deref @@ -26,7 +26,6 @@ fi ln -s no-such dangle || framework_failure -fail=0 set _ `ls -ldo dangle`; shift; user=$3 diff --git a/tests/chown/preserve-root b/tests/chown/preserve-root index d33262047..f5c4fce3b 100755 --- a/tests/chown/preserve-root +++ b/tests/chown/preserve-root @@ -26,7 +26,6 @@ skip_if_root_ mkdir d && ln -s / d/slink-to-root -fail=0 # Even if --preserve-root were to malfunction, allowing the chown or # chgrp to traverse through "/", since we're running as non-root, diff --git a/tests/chown/separator b/tests/chown/separator index 4ee285647..6e717f695 100755 --- a/tests/chown/separator +++ b/tests/chown/separator @@ -46,7 +46,6 @@ case $host_triplet in *) ;; esac -fail=0 chown '' . || fail=1 |