tests/run-tests.py
changeset 46918 248cbe173203
parent 46870 41d43d12c2c4
child 47040 c853bc60c5d6
equal deleted inserted replaced
46917:efadec3ea8e2 46918:248cbe173203
   299         def t():
   299         def t():
   300             start = time.time()
   300             start = time.time()
   301             while time.time() - start < timeout and p.returncode is None:
   301             while time.time() - start < timeout and p.returncode is None:
   302                 time.sleep(0.1)
   302                 time.sleep(0.1)
   303             p.timeout = True
   303             p.timeout = True
       
   304             vlog('# Timout reached for process %d' % p.pid)
   304             if p.returncode is None:
   305             if p.returncode is None:
   305                 terminate(p)
   306                 terminate(p)
   306 
   307 
   307         threading.Thread(target=t).start()
   308         threading.Thread(target=t).start()
   308 
   309