Patchwork [7,of,8,"STABLE] runtest: also update slow test timeout during `#if` clauses

login
register
mail settings
Submitter Pierre-Yves David
Date Feb. 24, 2019, 7:42 p.m.
Message ID <25e5d27bedf62f7800d4.1551037366@nodosa.octopoid.net>
Download mbox | patch
Permalink /patch/38914/
State Accepted
Headers show

Comments

Pierre-Yves David - Feb. 24, 2019, 7:42 p.m.
# HG changeset patch
# User Pierre-Yves David <pierre-yves.david@octobus.net>
# Date 1551034583 -3600
#      Sun Feb 24 19:56:23 2019 +0100
# Branch stable
# Node ID 25e5d27bedf62f7800d489ee8a71ed7eed8574af
# Parent  5d72989993e27197311a11ef8981ed3253954b3a
# EXP-Topic test-sparse-revlog
# Available At https://bitbucket.org/octobus/mercurial-devel/
#              hg pull https://bitbucket.org/octobus/mercurial-devel/ -r 25e5d27bedf6
runtest: also update slow test timeout during `#if` clauses

For a `#if slow` test to be useful, we need the test timeout to be increased.
Without this, the slow section would likely be killed before it finish.

Patch

diff --git a/tests/run-tests.py b/tests/run-tests.py
--- a/tests/run-tests.py
+++ b/tests/run-tests.py
@@ -1398,6 +1398,7 @@  class TTest(Test):
                     return False
             else:
                 reqs.append(arg)
+        self._detectslow(reqs)
         return self._hghave(reqs)[0]
 
     def _parsetest(self, lines):