summaryrefslogtreecommitdiff
path: root/tests/tail-2/inotify-rotate.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tests/tail-2/inotify-rotate.sh')
-rwxr-xr-xtests/tail-2/inotify-rotate.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/tail-2/inotify-rotate.sh b/tests/tail-2/inotify-rotate.sh
index 64724f9fd..be1f07e5b 100755
--- a/tests/tail-2/inotify-rotate.sh
+++ b/tests/tail-2/inotify-rotate.sh
@@ -40,6 +40,9 @@ cleanup_fail()
fail=1
}
+# Speedup the non inotify case
+fastpoll='-s.1 --max-unchanged-stats=1'
+
# Perform at least this many iterations, because on multi-core systems
# the offending sequence of events can be surprisingly uncommon.
# See: http://lists.gnu.org/archive/html/bug-coreutils/2009-11/msg00213.html
@@ -51,8 +54,7 @@ for i in $(seq 50); do
# 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 || framework_failure_ failed to initialize files
- timeout 60 tail -s.1 --max-unchanged-stats=1 -F k > out 2>&1 &
- pid=$!
+ timeout 60 tail $fastpoll -F k > out 2>&1 & pid=$!
echo 'tailed' > k;
# wait for 'tailed' to appear in out