changeset 44726:2789f25fc2b6

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
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Wed, 15 Apr 2020 20:08:36 +0200
parents 16c361152133
children 694d40416d62
files tests/testlib/wait-on-file
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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"