[Updated] D12617: wait-on-file: properly wait on any files and symlink
baymax (Baymax, Your Personal Patch-care Companion)
phabricator at mercurial-scm.org
Thu May 19 10:37:21 UTC 2022
baymax added a comment.
baymax edited the summary of this revision.
baymax retitled this revision from "wait-on-file: properly wait on any file and symlink" to "wait-on-file: properly wait on any files and symlink".
baymax updated this revision to Diff 33415.
✅ refresh by Heptapod after a successful CI run (🐙 💚)
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D12617?vs=33369&id=33415
BRANCH
default
CHANGES SINCE LAST ACTION
https://phab.mercurial-scm.org/D12617/new/
REVISION DETAIL
https://phab.mercurial-scm.org/D12617
AFFECTED FILES
tests/testlib/wait-on-file
CHANGE DETAILS
diff --git a/tests/testlib/wait-on-file b/tests/testlib/wait-on-file
--- a/tests/testlib/wait-on-file
+++ b/tests/testlib/wait-on-file
@@ -29,7 +29,7 @@
touch "$create"
create=""
fi
-while [ "$timer" -gt 0 ] && [ ! -f "$wait_on" ]; do
+while [ "$timer" -gt 0 ] && !([ -e "$wait_on" ] || [ -L "$wait_on" ]) ; do
timer=$(( $timer - 1))
sleep 0.02
done
To: marmoute, #hg-reviewers
Cc: mercurial-patches
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial-patches/attachments/20220519/c4066a48/attachment-0002.html>
More information about the Mercurial-patches
mailing list