Commit d8d9606d authored by Stefan Behnel's avatar Stefan Behnel

runtests: Print shard number also for each command in the EndToEnd test error...

runtests: Print shard number also for each command in the EndToEnd test error output to make it easy to find in the logs.
parent 62b7ac53
...@@ -1767,8 +1767,8 @@ class EndToEndTest(unittest.TestCase): ...@@ -1767,8 +1767,8 @@ class EndToEndTest(unittest.TestCase):
res = -1 res = -1
if res != 0: if res != 0:
for c, o, e in zip(cmd, out, err): for c, o, e in zip(cmd, out, err):
sys.stderr.write("%s\n%s\n%s\n\n" % ( sys.stderr.write("[%d] %s\n%s\n%s\n\n" % (
c, self._try_decode(o), self._try_decode(e))) self.shard_num, c, self._try_decode(o), self._try_decode(e)))
self.assertEqual(0, res, "non-zero exit status") self.assertEqual(0, res, "non-zero exit status")
self.success = True self.success = True
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment