D8425: wait-on-file: don't quote arithmetic argument

marmoute (Pierre-Yves David) phabricator at mercurial-scm.org
Thu Apr 16 16:55:12 UTC 2020


Closed by commit rHG2789f25fc2b6: wait-on-file: don't quote arithmetic argument (authored by marmoute).
This revision was automatically updated to reflect the committed changes.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D8425?vs=21102&id=21143

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D8425/new/

REVISION DETAIL
  https://phab.mercurial-scm.org/D8425

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
@@ -13,7 +13,7 @@
 
 # if the test timeout have been extended, explicitly extend the provided timer
 if [ "$HGTEST_TIMEOUT_DEFAULT" -lt "$HGTEST_TIMEOUT" ]; then
-    timer=$(( ("$timer" * "$HGTEST_TIMEOUT") / $HGTEST_TIMEOUT_DEFAULT ))
+    timer=$(( ($timer * $HGTEST_TIMEOUT) / $HGTEST_TIMEOUT_DEFAULT ))
 fi
 
 wait_on="$2"



To: marmoute, #hg-reviewers, mharbison72, pulkit
Cc: mharbison72, mercurial-devel


More information about the Mercurial-devel mailing list