changeset 4880:6403f948bd6b

run-tests: extract correct status when script terminates with exit
author Patrick Mezard <pmezard@gmail.com>
date Sat, 14 Jul 2007 14:01:11 +0200
parents 372d93f03d3a
children c51c9bc4579d
files tests/run-tests.py
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/tests/run-tests.py	Sat Jul 14 12:44:47 2007 -0500
+++ b/tests/run-tests.py	Sat Jul 14 14:01:11 2007 +0200
@@ -205,6 +205,8 @@
             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)