Submitter | Pierre-Yves David |
---|---|
Date | Feb. 24, 2019, 7:42 p.m. |
Message ID | <8cdce8eb1864523086cb.1551037364@nodosa.octopoid.net> |
Download | mbox | patch |
Permalink | /patch/38909/ |
State | Accepted |
Headers | show |
Comments
Patch
diff --git a/tests/run-tests.py b/tests/run-tests.py --- a/tests/run-tests.py +++ b/tests/run-tests.py @@ -1375,12 +1375,16 @@ class TTest(Test): self._have[allreqs] = (False, stdout) return False, stdout - if b'slow' in reqs: - self._timeout = self._slowtimeout + self._detectslow(reqs) self._have[allreqs] = (True, None) return True, None + def _detectslow(self, reqs): + """update the timeout of slow test when appropriate""" + if b'slow' in reqs: + self._timeout = self._slowtimeout + def _iftest(self, args): # implements "#if" reqs = []