tests/run-tests.py
changeset 41802 7eb4e62d4760
parent 41801 9f53a4e2e193
child 41803 bc1c1435a874
--- a/tests/run-tests.py	Sun Feb 24 19:56:40 2019 +0100
+++ b/tests/run-tests.py	Sun Feb 24 19:56:34 2019 +0100
@@ -1374,12 +1374,16 @@
             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 = []