# HG changeset patch # User Pierre-Yves David # Date 2019-02-24 18:56:08 # Node ID bc1c1435a87478e933a788a7b859c1df07758b69 # Parent 7eb4e62d476022ff7e40cbb51eb4caaecbf2250c runtest: move slow timeout process earlier in the `_hghave` method Before this changesets, early returns might prevent this logic to apply. It seem safer to run it sooner. diff --git a/tests/run-tests.py b/tests/run-tests.py --- a/tests/run-tests.py +++ b/tests/run-tests.py @@ -1353,6 +1353,9 @@ class TTest(Test): def _hghave(self, reqs): allreqs = b' '.join(reqs) + + self._detectslow(reqs) + if allreqs in self._have: return self._have.get(allreqs) @@ -1374,8 +1377,6 @@ class TTest(Test): self._have[allreqs] = (False, stdout) return False, stdout - self._detectslow(reqs) - self._have[allreqs] = (True, None) return True, None