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/tail-2 | |
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/tail-2')
-rwxr-xr-x | tests/tail-2/append-only | 1 | ||||
-rwxr-xr-x | tests/tail-2/big-4gb | 1 | ||||
-rwxr-xr-x | tests/tail-2/flush-initial | 1 | ||||
-rwxr-xr-x | tests/tail-2/follow-stdin | 1 | ||||
-rwxr-xr-x | tests/tail-2/infloop-1 | 1 | ||||
-rwxr-xr-x | tests/tail-2/inotify-race | 1 | ||||
-rwxr-xr-x | tests/tail-2/pid | 1 | ||||
-rwxr-xr-x | tests/tail-2/pipe-f | 1 | ||||
-rwxr-xr-x | tests/tail-2/pipe-f2 | 1 | ||||
-rwxr-xr-x | tests/tail-2/proc-ksyms | 1 | ||||
-rwxr-xr-x | tests/tail-2/start-middle | 1 | ||||
-rwxr-xr-x | tests/tail-2/tail-n0f | 1 | ||||
-rwxr-xr-x | tests/tail-2/wait | 1 |
13 files changed, 0 insertions, 13 deletions
diff --git a/tests/tail-2/append-only b/tests/tail-2/append-only index 2d38d4f0f..104ae4821 100755 --- a/tests/tail-2/append-only +++ b/tests/tail-2/append-only @@ -35,7 +35,6 @@ if test $chattr_a_works = 0; then skip_test_ "chattr +a doesn't work on this file system" fi -fail=0 for inotify in ---disable-inotify ''; do sleep 1 & diff --git a/tests/tail-2/big-4gb b/tests/tail-2/big-4gb index 23f3c12b0..e8b150ecb 100755 --- a/tests/tail-2/big-4gb +++ b/tests/tail-2/big-4gb @@ -41,7 +41,6 @@ possibly because this system does not support large files; Consider rerunning this test on a different file system.' fi -fail=0 tail -c1 big > out || fail=1 # Append a newline. diff --git a/tests/tail-2/flush-initial b/tests/tail-2/flush-initial index e0d79fe48..71f5dc0a0 100755 --- a/tests/tail-2/flush-initial +++ b/tests/tail-2/flush-initial @@ -23,7 +23,6 @@ fi . $srcdir/test-lib.sh -fail=0 echo line > in || fail=1 # Output should be buffered since we're writing to file # so we're depending on the flush to write out diff --git a/tests/tail-2/follow-stdin b/tests/tail-2/follow-stdin index 46e7ce80f..fc1343558 100755 --- a/tests/tail-2/follow-stdin +++ b/tests/tail-2/follow-stdin @@ -26,7 +26,6 @@ fi echo line > exp || framework_failure echo line > in || framework_failure -fail=0 timeout 1 tail -f < in > out 2> err # tail from coreutils-7.5 would fail diff --git a/tests/tail-2/infloop-1 b/tests/tail-2/infloop-1 index 72d51d975..3ef03dd5d 100755 --- a/tests/tail-2/infloop-1 +++ b/tests/tail-2/infloop-1 @@ -44,7 +44,6 @@ for i in $(seq 30); do sleep .1 done -fail=0 kill $tail_pid && fail=1 || : Exit $fail diff --git a/tests/tail-2/inotify-race b/tests/tail-2/inotify-race index 025272c02..890323988 100755 --- a/tests/tail-2/inotify-race +++ b/tests/tail-2/inotify-race @@ -27,7 +27,6 @@ fi . $srcdir/test-lib.sh -fail=0 touch file || framework_failure touch tail.out || framework_failure diff --git a/tests/tail-2/pid b/tests/tail-2/pid index 0a4b81bd3..c521b0349 100755 --- a/tests/tail-2/pid +++ b/tests/tail-2/pid @@ -26,7 +26,6 @@ getlimits_ touch empty here || framework_failure -fail=0 for inotify in ---disable-inotify ''; do # Use tail itself to create a background process to monitor, diff --git a/tests/tail-2/pipe-f b/tests/tail-2/pipe-f index b9f6ae389..8c71cea22 100755 --- a/tests/tail-2/pipe-f +++ b/tests/tail-2/pipe-f @@ -23,7 +23,6 @@ fi . $srcdir/test-lib.sh -fail=0 echo foo | timeout 2 tail -f -c3 > out || fail=1 echo oo > exp || fail=1 diff --git a/tests/tail-2/pipe-f2 b/tests/tail-2/pipe-f2 index 406ebcc91..905d66d45 100755 --- a/tests/tail-2/pipe-f2 +++ b/tests/tail-2/pipe-f2 @@ -28,7 +28,6 @@ mkfifo_or_skip_ fifo echo 1 > fifo & echo 1 > exp || framework_failure -fail=0 timeout 1 tail -f fifo > out test $? = 124 || fail=1 diff --git a/tests/tail-2/proc-ksyms b/tests/tail-2/proc-ksyms index 61caafd2c..34bdacd86 100755 --- a/tests/tail-2/proc-ksyms +++ b/tests/tail-2/proc-ksyms @@ -23,7 +23,6 @@ fi . $srcdir/test-lib.sh -fail=0 ksyms=/proc/ksyms if test -r $ksyms; then diff --git a/tests/tail-2/start-middle b/tests/tail-2/start-middle index 514a2136b..416cb4475 100755 --- a/tests/tail-2/start-middle +++ b/tests/tail-2/start-middle @@ -26,7 +26,6 @@ fi (echo 1; echo 2) > k || framework_failure -fail=0 sh -c 'read x; tail' < k > out || fail=1 cat <<EOF > exp diff --git a/tests/tail-2/tail-n0f b/tests/tail-2/tail-n0f index ddfbe6645..cf50fa295 100755 --- a/tests/tail-2/tail-n0f +++ b/tests/tail-2/tail-n0f @@ -33,7 +33,6 @@ require_proc_pid_status_ touch empty || framework_failure echo anything > nonempty || framework_failure -fail=0 for inotify in ---disable-inotify ''; do for file in empty nonempty; do diff --git a/tests/tail-2/wait b/tests/tail-2/wait index 62498d5dc..9392ade23 100755 --- a/tests/tail-2/wait +++ b/tests/tail-2/wait @@ -28,7 +28,6 @@ touch here || framework_failure touch k || framework_failure { touch unreadable && chmod a-r unreadable; } || framework_failure -fail=0 for inotify in ---disable-inotify ''; do timeout 1 tail -s0.1 -f $inotify not_here |