Patchwork D8453: wait-on-file: adjust the timer counter

login
register
mail settings
Submitter phabricator
Date April 23, 2020, 6:13 p.m.
Message ID <f0012077121ad8a4dfa028e1f04e2b42@localhost.localdomain>
Download mbox | patch
Permalink /patch/46224/
State Not Applicable
Headers show

Comments

phabricator - April 23, 2020, 6:13 p.m.
Herald added a subscriber: mercurial-patches.
Closed by commit rHG23dd43d94f50: wait-on-file: adjust the timer counter (authored by marmoute).
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/D8453?vs=21149&id=21202

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

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

AFFECTED FILES
  tests/testlib/wait-on-file

CHANGE DETAILS




To: marmoute, #hg-reviewers, Alphare
Cc: mercurial-patches, 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=$(( ( 100 * $timer * $HGTEST_TIMEOUT) / $HGTEST_TIMEOUT_DEFAULT ))
 fi
 
 wait_on="$2"