summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernhard Voelker <mail@bernhard-voelker.de>2014-10-29 23:21:13 +0100
committerBernhard Voelker <mail@bernhard-voelker.de>2014-10-29 23:22:57 +0100
commit02e281e1b27b0e4e28918b4bc5e026e9aca51647 (patch)
tree57b92db2e0e106e8fe593aa4719c3b1ac7a71a53
parent097897bd2c9de5723af24b3848d6d922a862064b (diff)
downloadcoreutils-02e281e1b27b0e4e28918b4bc5e026e9aca51647.tar.xz
tests: make du/move-dir-while-traversing more robust
* tests/du/move-dir-while-traversing.sh: Catch failure of retry_delay_ when waiting for the watcher to get ready.
-rwxr-xr-xtests/du/move-dir-while-traversing.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/du/move-dir-while-traversing.sh b/tests/du/move-dir-while-traversing.sh
index 046dad901..c52409ef0 100755
--- a/tests/du/move-dir-while-traversing.sh
+++ b/tests/du/move-dir-while-traversing.sh
@@ -78,7 +78,7 @@ timeout 6 ./inotify-watch-for-dir-access.py $t/3/a/b > start-msg &
# Wait for the watcher to start...
nonempty() { test -s start-msg || { sleep $1; return 1; }; }
-retry_delay_ nonempty .1 5
+retry_delay_ nonempty .1 5 || fail=1
# The above watches for an IN_OPEN event on $t/3/a/b,
# and when it triggers, moves the parent, $t/3/a, up one level