comparison tests/run-tests.py @ 46918:248cbe173203

run-test: make it clearer why we terminating process The --verbose log wer only talking about process termination. Now we have more information about why. Differential Revision: https://phab.mercurial-scm.org/D10394
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Wed, 14 Apr 2021 15:53:43 +0200
parents 41d43d12c2c4
children c853bc60c5d6
comparison
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