From 316d087960c629925589153058b687dd445dc631 Mon Sep 17 00:00:00 2001 From: He Yin Ling Date: Thu, 26 Jul 2018 21:17:06 +0800 Subject: [PATCH] tiny-test-fw: fix exception during print debug info: DUT log is unicode, might not be able to encode --- tools/tiny-test-fw/DUT.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/tiny-test-fw/DUT.py b/tools/tiny-test-fw/DUT.py index 6380c43d6..0193cb6c7 100644 --- a/tools/tiny-test-fw/DUT.py +++ b/tools/tiny-test-fw/DUT.py @@ -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")