run-tests: display diff before prompting with --interactive stable
authorPatrick Mezard <pmezard@gmail.com>
Mon, 25 Apr 2011 18:42:31 +0200
branchstable
changeset 916 dd5c50a018b0
parent 915 5660a21567b7
child 917 6f25a5834e14
child 918 3071ec5d085c
run-tests: display diff before prompting with --interactive [ original upstream message ]
tests/run-tests.py
--- a/tests/run-tests.py	Sun Apr 24 17:52:46 2011 -0500
+++ b/tests/run-tests.py	Mon Apr 25 18:42:31 2011 +0200
@@ -826,17 +826,17 @@
         fail("timed out", ret)
     elif out != refout:
         mark = '!'
-        if ret:
-            fail("output changed and returned error code %d" % ret, ret)
-        else:
-            fail("output changed", ret)
-        if ret != 'timeout' and not options.nodiff:
+        if not options.nodiff:
             iolock.acquire()
             if options.view:
                 os.system("%s %s %s" % (options.view, ref, err))
             else:
                 showdiff(refout, out, ref, err)
             iolock.release()
+        if ret:
+            fail("output changed and returned error code %d" % ret, ret)
+        else:
+            fail("output changed", ret)
         ret = 1
     elif ret:
         mark = '!'