##// END OF EJS Templates
runtest: extract the logic that update timeout for slow tests...
marmoute -
r41967:7eb4e62d default
parent child Browse files
Show More
@@ -1374,12 +1374,16 b' class TTest(Test):'
1374 self._have[allreqs] = (False, stdout)
1374 self._have[allreqs] = (False, stdout)
1375 return False, stdout
1375 return False, stdout
1376
1376
1377 if b'slow' in reqs:
1377 self._detectslow(reqs)
1378 self._timeout = self._slowtimeout
1379
1378
1380 self._have[allreqs] = (True, None)
1379 self._have[allreqs] = (True, None)
1381 return True, None
1380 return True, None
1382
1381
1382 def _detectslow(self, reqs):
1383 """update the timeout of slow test when appropriate"""
1384 if b'slow' in reqs:
1385 self._timeout = self._slowtimeout
1386
1383 def _iftest(self, args):
1387 def _iftest(self, args):
1384 # implements "#if"
1388 # implements "#if"
1385 reqs = []
1389 reqs = []
General Comments 0
You need to be logged in to leave comments. Login now