Patchwork [STABLE] tests: give more room for slowness in test-run-tests.t

login
register
mail settings
Submitter Pierre-Yves David
Date Aug. 8, 2019, 8:57 a.m.
Message ID <f4f244549ffa6f9f6c86.1565254675@nodosa.octopoid.net>
Download mbox | patch
Permalink /patch/41221/
State Accepted
Headers show

Comments

Pierre-Yves David - Aug. 8, 2019, 8:57 a.m.
# HG changeset patch
# User Pierre-Yves David <pierre-yves.david@octobus.net>
# Date 1565254506 -7200
#      Thu Aug 08 10:55:06 2019 +0200
# Branch stable
# Node ID f4f244549ffa6f9f6c86849b756d5b4028bf6f24
# Parent  cba59b338976af0e4c92cf16b8f95331e6ac4f30
# EXP-Topic test-runtests
# Available At https://bitbucket.org/octobus/mercurial-devel/
#              hg pull https://bitbucket.org/octobus/mercurial-devel/ -r f4f244549ffa
tests: give more room for slowness in test-run-tests.t

The test expected any run-test.py run to end in less than 10 seconds. On slower,
loaded CI machine this get slower than that. We give a bit more room to the
regexp.
Yuya Nishihara - Aug. 8, 2019, 12:36 p.m.
On Thu, 08 Aug 2019 10:57:55 +0200, Pierre-Yves David wrote:
> # HG changeset patch
> # User Pierre-Yves David <pierre-yves.david@octobus.net>
> # Date 1565254506 -7200
> #      Thu Aug 08 10:55:06 2019 +0200
> # Branch stable
> # Node ID f4f244549ffa6f9f6c86849b756d5b4028bf6f24
> # Parent  cba59b338976af0e4c92cf16b8f95331e6ac4f30
> # EXP-Topic test-runtests
> # Available At https://bitbucket.org/octobus/mercurial-devel/
> #              hg pull https://bitbucket.org/octobus/mercurial-devel/ -r f4f244549ffa
> tests: give more room for slowness in test-run-tests.t

Queued, thanks.

Patch

diff --git a/tests/test-run-tests.t b/tests/test-run-tests.t
--- a/tests/test-run-tests.t
+++ b/tests/test-run-tests.t
@@ -1030,7 +1030,7 @@  test for --time
   # Ran 1 tests, 0 skipped, 0 failed.
   # Producing time report
   start   end     cuser   csys    real      Test
-  \s*[\d\.]{5}   \s*[\d\.]{5}   \s*[\d\.]{5}   \s*[\d\.]{5}   \s*[\d\.]{5}   test-success.t (re)
+  \s*[\d\.]{5,8}   \s*[\d\.]{5,8}   \s*[\d\.]{5,8}   \s*[\d\.]{5,8}   \s*[\d\.]{5,8}   test-success.t (re)
 
 test for --time with --job enabled
 ====================================
@@ -1041,7 +1041,7 @@  test for --time with --job enabled
   # Ran 1 tests, 0 skipped, 0 failed.
   # Producing time report
   start   end     cuser   csys    real      Test
-  \s*[\d\.]{5}   \s*[\d\.]{5}   \s*[\d\.]{5}   \s*[\d\.]{5}   \s*[\d\.]{5}   test-success.t (re)
+  \s*[\d\.]{5,8}   \s*[\d\.]{5,8}   \s*[\d\.]{5,8}   \s*[\d\.]{5,8}   \s*[\d\.]{5,8}   test-success.t (re)
 
 Skips
 ================