+ @staticmethod
+ def _format_ts(ts):
+ return "{}:{}".format(time.strftime("%m-%d %H:%M:%S", time.localtime(ts)), str(ts % 1)[2:5])
+
+ def print_debug_info(self):
+ """
+ Print debug info of current DUT. Currently we will print debug info for expect failures.
+ """
+ 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"
+ .format(failure["pattern"], failure["data"],
+ self._format_ts(failure["start"]), self._format_ts(failure["end"])),
+ color="orange")
+