tests/run-tests.py
changeset 41802 7eb4e62d4760
parent 41801 9f53a4e2e193
child 41803 bc1c1435a874
equal deleted inserted replaced
41801:9f53a4e2e193 41802:7eb4e62d4760
  1372 
  1372 
  1373         if ret != 0:
  1373         if ret != 0:
  1374             self._have[allreqs] = (False, stdout)
  1374             self._have[allreqs] = (False, stdout)
  1375             return False, stdout
  1375             return False, stdout
  1376 
  1376 
       
  1377         self._detectslow(reqs)
       
  1378 
       
  1379         self._have[allreqs] = (True, None)
       
  1380         return True, None
       
  1381 
       
  1382     def _detectslow(self, reqs):
       
  1383         """update the timeout of slow test when appropriate"""
  1377         if b'slow' in reqs:
  1384         if b'slow' in reqs:
  1378             self._timeout = self._slowtimeout
  1385             self._timeout = self._slowtimeout
  1379 
       
  1380         self._have[allreqs] = (True, None)
       
  1381         return True, None
       
  1382 
  1386 
  1383     def _iftest(self, args):
  1387     def _iftest(self, args):
  1384         # implements "#if"
  1388         # implements "#if"
  1385         reqs = []
  1389         reqs = []
  1386         for arg in args:
  1390         for arg in args: