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

DUT log is unicode, might not be able to encode
pull/2108/merge
He Yin Ling 2018-07-26 21:17:06 +08:00
rodzic bffcea09df
commit 316d087960
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -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")