wait-on-file: don't quote arithmetic argument
authorPierre-Yves David <pierre-yves.david@octobus.net>
Wed, 15 Apr 2020 20:08:36 +0200
changeset 44726 2789f25fc2b6
parent 44725 16c361152133
child 44727 694d40416d62
wait-on-file: don't quote arithmetic argument This is unnecessary and Mac OS X choke on them. Differential Revision: https://phab.mercurial-scm.org/D8425
tests/testlib/wait-on-file
--- a/tests/testlib/wait-on-file	Tue Apr 14 19:09:56 2020 -0400
+++ b/tests/testlib/wait-on-file	Wed Apr 15 20:08:36 2020 +0200
@@ -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"