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 <>
Reviewed-by: default avatarAndrew Bartlett <>
parent 3f88e978
...@@ -572,7 +572,7 @@ class PlainFormatter(TestsuiteEnabledTestResult): ...@@ -572,7 +572,7 @@ class PlainFormatter(TestsuiteEnabledTestResult):
self.test_output[] += "UNEXPECTED(%s): %s\n" % (result, testname) self.test_output[] += "UNEXPECTED(%s): %s\n" % (result, testname)
if err is not None: if err is not None:
self.test_output[] += "REASON: %s\n" % err.encode("utf-8").strip() self.test_output[] += "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[]) sys.stdout.write(self.test_output[])
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