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/mkdir | |
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/mkdir')
-rwxr-xr-x | tests/mkdir/p-1 | 1 | ||||
-rwxr-xr-x | tests/mkdir/p-2 | 1 | ||||
-rwxr-xr-x | tests/mkdir/p-3 | 1 | ||||
-rwxr-xr-x | tests/mkdir/p-slashdot | 1 | ||||
-rwxr-xr-x | tests/mkdir/p-thru-slink | 1 | ||||
-rwxr-xr-x | tests/mkdir/p-v | 1 | ||||
-rwxr-xr-x | tests/mkdir/parents | 1 | ||||
-rwxr-xr-x | tests/mkdir/perm | 1 | ||||
-rwxr-xr-x | tests/mkdir/selinux | 1 | ||||
-rwxr-xr-x | tests/mkdir/special-1 | 1 | ||||
-rwxr-xr-x | tests/mkdir/t-slash | 1 | ||||
-rwxr-xr-x | tests/mkdir/writable-under-readonly | 1 |
12 files changed, 0 insertions, 12 deletions
diff --git a/tests/mkdir/p-1 b/tests/mkdir/p-1 index 1d4cb17fb..1cb5cab44 100755 --- a/tests/mkdir/p-1 +++ b/tests/mkdir/p-1 @@ -23,7 +23,6 @@ fi . $srcdir/test-lib.sh -fail=0 mkdir --parents "`pwd`/t" || fail=1 test -d t || fail=1 diff --git a/tests/mkdir/p-2 b/tests/mkdir/p-2 index 9a75112ef..2320da1c1 100755 --- a/tests/mkdir/p-2 +++ b/tests/mkdir/p-2 @@ -23,7 +23,6 @@ fi . $srcdir/test-lib.sh -fail=0 mkdir --parents "`pwd`/t/u" || fail=1 test -d t/u || fail=1 diff --git a/tests/mkdir/p-3 b/tests/mkdir/p-3 index 06207b269..df1c56d32 100755 --- a/tests/mkdir/p-3 +++ b/tests/mkdir/p-3 @@ -30,7 +30,6 @@ mkdir no-access || framework_failure mkdir no-acce2s || framework_failure mkdir -p no-acce3s/d || framework_failure -fail=0 p=`pwd` (cd no-access && chmod 0 . && mkdir -p "$p/a/b" u/v) 2> /dev/null && fail=1 test -d "$p/a/b" || fail=1 diff --git a/tests/mkdir/p-slashdot b/tests/mkdir/p-slashdot index 4d2674e4b..a5b9f6691 100755 --- a/tests/mkdir/p-slashdot +++ b/tests/mkdir/p-slashdot @@ -23,7 +23,6 @@ fi . $srcdir/test-lib.sh -fail=0 mkdir -p d1/. || fail=1 test -d d1 || fail=1 diff --git a/tests/mkdir/p-thru-slink b/tests/mkdir/p-thru-slink index 30df4fe59..e39d0b988 100755 --- a/tests/mkdir/p-thru-slink +++ b/tests/mkdir/p-thru-slink @@ -25,7 +25,6 @@ fi ln -s . slink || framework_failure -fail=0 mkdir -p slink/x || fail=1 test -d x || fail=1 diff --git a/tests/mkdir/p-v b/tests/mkdir/p-v index 5f2468e0d..0d3232285 100755 --- a/tests/mkdir/p-v +++ b/tests/mkdir/p-v @@ -23,7 +23,6 @@ fi . $srcdir/test-lib.sh -fail=0 mkdir -pv foo/a/b/c/d >out || fail=1 diff - out <<\EOF diff --git a/tests/mkdir/parents b/tests/mkdir/parents index 69ab38c46..941177506 100755 --- a/tests/mkdir/parents +++ b/tests/mkdir/parents @@ -26,7 +26,6 @@ skip_if_setgid_ mkdir -m 700 e-dir || framework_failure -fail=0 # Make sure `mkdir -p existing-dir' succeeds # and that `mkdir existing-dir' fails. diff --git a/tests/mkdir/perm b/tests/mkdir/perm index af2bdcd63..370de2453 100755 --- a/tests/mkdir/perm +++ b/tests/mkdir/perm @@ -27,7 +27,6 @@ skip_if_setgid_ working_umask_or_skip_ -fail=0 # parent parent/dir # umask -m option resulting perm resulting perm diff --git a/tests/mkdir/selinux b/tests/mkdir/selinux index d872cb6d1..ddd237cdb 100755 --- a/tests/mkdir/selinux +++ b/tests/mkdir/selinux @@ -33,7 +33,6 @@ require_selinux_enforcing_ c=invalid-selinux-context msg="failed to set default file creation context to \`$c':" -fail=0 # Test each of mkdir, mknod, mkfifo with "-Z invalid-context". for cmd_w_arg in 'mkdir dir' 'mknod b p' 'mkfifo f'; do diff --git a/tests/mkdir/special-1 b/tests/mkdir/special-1 index d1af121da..4956c20e9 100755 --- a/tests/mkdir/special-1 +++ b/tests/mkdir/special-1 @@ -26,7 +26,6 @@ fi set_mode_string=u=rwx,g=rx,o=w,-s,+t output_mode_string=drwxr-x-wT -fail=0 tmp=t mkdir -m$set_mode_string $tmp || fail=1 diff --git a/tests/mkdir/t-slash b/tests/mkdir/t-slash index 3214bf4f4..4213784df 100755 --- a/tests/mkdir/t-slash +++ b/tests/mkdir/t-slash @@ -24,7 +24,6 @@ fi . $srcdir/test-lib.sh -fail=0 mkdir -p dir/ || fail=1 test -d dir || fail=1 diff --git a/tests/mkdir/writable-under-readonly b/tests/mkdir/writable-under-readonly index 9c886842b..5df2de198 100755 --- a/tests/mkdir/writable-under-readonly +++ b/tests/mkdir/writable-under-readonly @@ -37,7 +37,6 @@ skip_test_ temporarily disabled # FIXME: define cleanup_ to do the umount -fail=0 # FIXME: use mktemp cd /tmp \ && dd if=/dev/zero of=1 bs=8192 count=50 \ |