tiny-test-fw: fix exception during print debug info:

DUT log is unicode, might not be able to encode
This commit is contained in:
He Yin Ling 2018-07-26 21:17:06 +08:00
parent bf72ed92a9
commit 715dfac07e

View File

@ -645,7 +645,7 @@ class BaseDUT(object):
Utility.console_log("DUT debug info for DUT: {}:".format(self.name), color="orange")
for failure in self.expect_failures:
Utility.console_log("\t[pattern]: {}\r\n\t[data]: {}\r\n\t[time]: {} - {}\r\n"
Utility.console_log(u"\t[pattern]: {}\r\n\t[data]: {}\r\n\t[time]: {} - {}\r\n"
.format(failure["pattern"], failure["data"],
self._format_ts(failure["start"]), self._format_ts(failure["end"])),
color="orange")