Add message to test output if a test is aborted due to a timeout.
authorThomas Arendsen Hein <thomas@intevation.de>
Mon, 06 Aug 2007 14:45:43 +0200
changeset 5078 d27ed83289ee
parent 5077 84b10dc3dccc
child 5079 04c1474ccddd
Add message to test output if a test is aborted due to a timeout. Without this an aborted test could produce an empty .err file so the diff looks like as if all lines of the .out files are just missing for some unknown reason.
tests/run-tests.py
--- a/tests/run-tests.py	Mon Aug 06 10:08:28 2007 +0200
+++ b/tests/run-tests.py	Mon Aug 06 14:45:43 2007 +0200
@@ -227,6 +227,8 @@
             ret = proc.wait()
             if ret == 0:
                 ret = signal.SIGTERM << 8
+            output += ("\n### Abort: timeout after %d seconds.\n"
+                       % options.timeout)
     return ret, splitnewlines(output)
 
 def run_one(test):