diff --git a/tools/tiny-test-fw/IDF/IDFDUT.py b/tools/tiny-test-fw/IDF/IDFDUT.py index e949f7ca32..065371089b 100644 --- a/tools/tiny-test-fw/IDF/IDFDUT.py +++ b/tools/tiny-test-fw/IDF/IDFDUT.py @@ -366,5 +366,4 @@ class IDFDUT(DUT.SerialDUT): def close(self): super(IDFDUT, self).close() if not self.allow_dut_exception and self.get_exceptions(): - Utility.console_log("DUT exception detected on {}".format(self), color="red") - raise IDFDUTException() + raise IDFDUTException('DUT exception detected on {}'.format(self)) diff --git a/tools/tiny-test-fw/TinyFW.py b/tools/tiny-test-fw/TinyFW.py index 219851535b..0ed8ae5d78 100644 --- a/tools/tiny-test-fw/TinyFW.py +++ b/tools/tiny-test-fw/TinyFW.py @@ -194,7 +194,7 @@ def test_method(**kwargs): # and raise exception in DUT close to fail test case if reset detected. if close_errors: for error in close_errors: - junit_test_case.add_failure_info(str(error)) + junit_test_case.add_failure_info('env close error: {}'.format(error)) result = False if not case_info["junit_report_by_case"]: JunitReport.test_case_finish(junit_test_case)