run-tests: simplify interrupted message stable
authorMatt Mackall <mpm@selenic.com>
Fri, 07 Jun 2013 16:04:11 -0500
branchstable
changeset 1270 79e0df6ffaad
parent 1269 a11176ad8001
child 1271 181e420ff0ac
child 1272 4a224ed7e923
run-tests: simplify interrupted message [ original upstream message ]
tests/run-tests.py
--- a/tests/run-tests.py	Fri Jun 07 15:58:14 2013 -0500
+++ b/tests/run-tests.py	Fri Jun 07 16:04:11 2013 -0500
@@ -961,8 +961,7 @@
         ret, out = runner(testpath, testtmp, options, replacements, env)
     except KeyboardInterrupt:
         endtime = time.time()
-        msg = '(after %d seconds)' % (endtime - starttime)
-        log('INTERRUPTED:', test, msg)
+        log('INTERRUPTED: %s (after %d seconds)' % (test, endtime - starttime))
         raise
     endtime = time.time()
     times.append((test, endtime - starttime))