summaryrefslogtreecommitdiff
path: root/tests/tail-2
diff options
context:
space:
mode:
Diffstat (limited to 'tests/tail-2')
-rwxr-xr-xtests/tail-2/flush-initial.sh5
-rwxr-xr-xtests/tail-2/pipe-f2.sh6
2 files changed, 3 insertions, 8 deletions
diff --git a/tests/tail-2/flush-initial.sh b/tests/tail-2/flush-initial.sh
index 630cc5fc8..803502ad7 100755
--- a/tests/tail-2/flush-initial.sh
+++ b/tests/tail-2/flush-initial.sh
@@ -34,9 +34,8 @@ tail $fastpoll -f in > out & pid=$!
tail_flush()
{
local delay="$1"
-
- test -s out ||
- { sleep "$delay"; return 1; }
+ sleep $delay
+ test -s out
}
retry_delay_ tail_flush .1 5 || fail=1
diff --git a/tests/tail-2/pipe-f2.sh b/tests/tail-2/pipe-f2.sh
index d91de5854..70fb3bdc1 100755
--- a/tests/tail-2/pipe-f2.sh
+++ b/tests/tail-2/pipe-f2.sh
@@ -32,11 +32,7 @@ fastpoll='-s.1 --max-unchanged-stats=1'
timeout 10 tail $fastpoll -f fifo > out & pid=$!
-check_tail_output()
-{
- local n_sec="$1"
- test -s out || { sleep $n_sec; return 1; }
-}
+check_tail_output() { sleep $1; test -s out; }
# Wait 12.7s for tail to write something.
retry_delay_ check_tail_output .1 7 || fail=1