Commit ee0b548e authored by Jelmer Vernooij's avatar Jelmer Vernooij Committed by Andrew Bartlett

Fix handling of unexpected failures in subunithelper.

Change-Id: I0da9fcec4a54c43c171b76bb9015ea84389c9bc6
Signed-off-by: Jelmer Vernooij's avatarJelmer Vernooij <jelmer@samba.org>
Reviewed-by: default avatarAndrew Bartlett <abartlet@samba.org>
parent 3f88e978
...@@ -572,7 +572,7 @@ class PlainFormatter(TestsuiteEnabledTestResult): ...@@ -572,7 +572,7 @@ class PlainFormatter(TestsuiteEnabledTestResult):
self.test_output[self.name] += "UNEXPECTED(%s): %s\n" % (result, testname) self.test_output[self.name] += "UNEXPECTED(%s): %s\n" % (result, testname)
if err is not None: if err is not None:
self.test_output[self.name] += "REASON: %s\n" % err.encode("utf-8").strip() self.test_output[self.name] += "REASON: %s\n" % str(err[1]).strip()
if self.immediate and not self.verbose: if self.immediate and not self.verbose:
sys.stdout.write(self.test_output[self.name]) sys.stdout.write(self.test_output[self.name])
......
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