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/install | |
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/install')
-rwxr-xr-x | tests/install/basic-1 | 1 | ||||
-rwxr-xr-x | tests/install/create-leading | 1 | ||||
-rwxr-xr-x | tests/install/d-slashdot | 1 | ||||
-rwxr-xr-x | tests/install/install-C | 1 | ||||
-rwxr-xr-x | tests/install/install-C-root | 1 | ||||
-rwxr-xr-x | tests/install/install-C-selinux | 1 | ||||
-rwxr-xr-x | tests/install/strip-program | 1 | ||||
-rwxr-xr-x | tests/install/trap | 1 |
8 files changed, 0 insertions, 8 deletions
diff --git a/tests/install/basic-1 b/tests/install/basic-1 index 7fdb7398b..a09be6318 100755 --- a/tests/install/basic-1 +++ b/tests/install/basic-1 @@ -31,7 +31,6 @@ rm -rf $dir $file || framework_failure mkdir -p $dir || framework_failure echo foo > $file || framework_failure -fail=0 ginstall $file $dir || fail=1 # Make sure the source file still exists. test -f $file || fail=1 diff --git a/tests/install/create-leading b/tests/install/create-leading index 0740ca506..012f0a00b 100755 --- a/tests/install/create-leading +++ b/tests/install/create-leading @@ -26,7 +26,6 @@ fi . $srcdir/test-lib.sh -fail=0 file=file echo foo > $file diff --git a/tests/install/d-slashdot b/tests/install/d-slashdot index 632fef5ab..95ed03879 100755 --- a/tests/install/d-slashdot +++ b/tests/install/d-slashdot @@ -23,7 +23,6 @@ fi . $srcdir/test-lib.sh -fail=0 ginstall -d d1/. || fail=1 test -d d1 || fail=1 diff --git a/tests/install/install-C b/tests/install/install-C index a1a9d6831..1edfa544f 100755 --- a/tests/install/install-C +++ b/tests/install/install-C @@ -28,7 +28,6 @@ mode1=0644 mode2=0755 mode3=2755 -fail=0 echo test > a || framework_failure echo "\`a' -> \`b'" > out_installed_first || framework_failure diff --git a/tests/install/install-C-root b/tests/install/install-C-root index 234ebe790..b31d29d5b 100755 --- a/tests/install/install-C-root +++ b/tests/install/install-C-root @@ -30,7 +30,6 @@ u2=2 g1=1 g2=2 -fail=0 echo test > a || framework_failure echo "\`a' -> \`b'" > out_installed_first diff --git a/tests/install/install-C-selinux b/tests/install/install-C-selinux index a91d8bbf6..95aacda2f 100755 --- a/tests/install/install-C-selinux +++ b/tests/install/install-C-selinux @@ -24,7 +24,6 @@ fi . $srcdir/test-lib.sh require_selinux_ -fail=0 echo test > a || framework_failure chcon -u system_u a || skip_test_ "chcon doesn't work" diff --git a/tests/install/strip-program b/tests/install/strip-program index 88072ccd1..d96d0d32b 100755 --- a/tests/install/strip-program +++ b/tests/install/strip-program @@ -31,7 +31,6 @@ sed s/b/B/ \$1 > \$1.t && mv \$1.t \$1 EOF chmod a+x b || framework_failure -fail=0 echo abc > src || fail=1 echo aBc > exp || fail=1 diff --git a/tests/install/trap b/tests/install/trap index 37da21f7c..157bb6a45 100755 --- a/tests/install/trap +++ b/tests/install/trap @@ -24,7 +24,6 @@ fi . $srcdir/test-lib.sh -fail=0 # Use a subshell and an exec to work around a bug in FreeBSD 5.0 /bin/sh. ( |