# HG changeset patch # User Patrick Mezard # Date 1184414471 -7200 # Node ID 6403f948bd6b8c123e19a0fdaf458c93c1f41101 # Parent 372d93f03d3aae749c5d523d8c33ce36581b8887 run-tests: extract correct status when script terminates with exit diff --git a/tests/run-tests.py b/tests/run-tests.py --- a/tests/run-tests.py +++ b/tests/run-tests.py @@ -205,6 +205,8 @@ def run(cmd): proc.tochild.close() output = proc.fromchild.read() ret = proc.wait() + if os.WIFEXITED(ret): + ret = os.WEXITSTATUS(ret) except Timeout: vlog('# Process %d timed out - killing it' % proc.pid) os.kill(proc.pid, signal.SIGTERM)