[Commented On] D12617: wait-on-file: properly wait on any files and symlink
baymax (Baymax, Your Personal Patch-care Companion)
phabricator at mercurial-scm.org
Tue May 24 14:34:47 UTC 2022
baymax added a comment.
baymax updated this revision to Diff 33430.
✅ refresh by Heptapod after a successful CI run (🐙 💚)
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D12617?vs=33415&id=33430
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, Alphare
Cc: mercurial-patches
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial-patches/attachments/20220524/05ecf140/attachment-0002.html>
More information about the Mercurial-patches
mailing list