summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xtests/tail-2/inotify-rotate.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/tail-2/inotify-rotate.sh b/tests/tail-2/inotify-rotate.sh
index 94c2b7d7b..4a16202d2 100755
--- a/tests/tail-2/inotify-rotate.sh
+++ b/tests/tail-2/inotify-rotate.sh
@@ -47,7 +47,8 @@ for i in $(seq 50); do
# Normally less than a second is required here, but with heavy load
# and a lot of disk activity, even 20 seconds is insufficient, which
# leads to this timeout killing tail before the "ok" is written below.
- :>k && :>x && timeout 40 tail -F k > out 2>&1 &
+ :>k && :>x || framework_failure_ failed to initialize files
+ timeout 40 tail -F k > out 2>&1 &
pid=$!
sleep .1
echo b > k;
@@ -65,4 +66,5 @@ for i in $(seq 50); do
test $found = 0 && { cat out; fail_ failed to detect echoed '"ok"'; }
done
+wait
Exit $fail