[Updated] D8500: tests: use regular POSIX shell
joerg.sonnenberger (Joerg Sonnenberger)
phabricator at mercurial-scm.org
Thu May 7 14:58:33 UTC 2020
Closed by commit rHGf727939f3513: tests: use regular POSIX shell (authored by joerg.sonnenberger).
This revision was automatically updated to reflect the committed changes.
This revision was not accepted when it landed; it landed in state "Needs Review".
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D8500?vs=21277&id=21280
CHANGES SINCE LAST ACTION
https://phab.mercurial-scm.org/D8500/new/
REVISION DETAIL
https://phab.mercurial-scm.org/D8500
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
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
#
# wait up to TIMEOUT seconds until a WAIT_ON_FILE is created.
#
@@ -22,13 +22,11 @@
create="$3"
fi
-if [ -n "$create" ];
-then
+if [ -n "$create" ]; then
touch "$create"
create=""
fi
-while [ "$timer" -gt 0 ] && [ ! -f "$wait_on" ];
-do
+while [ "$timer" -gt 0 ] && [ ! -f "$wait_on" ]; do
timer=$(( $timer - 1))
sleep 0.01
done
To: joerg.sonnenberger, #hg-reviewers
Cc: marmoute, mercurial-patches
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial-patches/attachments/20200507/c34b7ac0/attachment-0002.html>
More information about the Mercurial-patches
mailing list