[PATCH] run-test: include test name in the return output

Pierre-Yves David pierre-yves.david at ens-lyon.org
Mon May 4 17:24:33 CDT 2015


# HG changeset patch
# User Pierre-Yves David <pierre-yves.david at fb.com>
# Date 1426796120 25200
#      Thu Mar 19 13:15:20 2015 -0700
# Node ID 4bb7ebe34af5251078b76a3a30e41585c59298e7
# Parent  e9edd53770fb77a9787a3e6592a3bf0a29c1bd80
run-test: include test name in the return output

Otherwise using --verbose and --jobs give useless output

diff --git a/tests/run-tests.py b/tests/run-tests.py
--- a/tests/run-tests.py
+++ b/tests/run-tests.py
@@ -618,11 +618,11 @@ class Test(unittest.TestCase):
             f = open(self.errpath, 'wb')
             for line in self._out:
                 f.write(line)
             f.close()
 
-        vlog("# Ret was:", self._ret)
+        vlog("# Ret was:", self._ret, '(%s)' % self.name)
 
     def _run(self, env):
         # This should be implemented in child classes to run tests.
         raise SkipTest('unknown test type')
 


More information about the Mercurial-devel mailing list