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

login
register
mail settings
Submitter phabricator
Date April 16, 2020, 4:55 p.m.
Message ID <da29f0de1311fe1d99ca3f1b4e57b194@localhost.localdomain>
Download mbox | patch
Permalink /patch/46170/
State Not Applicable
Headers show

Comments

phabricator - April 16, 2020, 4:55 p.m.
Closed by commit rHG2789f25fc2b6: wait-on-file: don&#039;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




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

Patch

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"