diff --git a/tools/ci/python_packages/tiny_test_fw/TinyFW.py b/tools/ci/python_packages/tiny_test_fw/TinyFW.py index 6825dd8f69..bada70fc04 100644 --- a/tools/ci/python_packages/tiny_test_fw/TinyFW.py +++ b/tools/ci/python_packages/tiny_test_fw/TinyFW.py @@ -222,7 +222,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'] or unexpected_error: JunitReport.test_case_finish(junit_test_case) diff --git a/tools/ci/python_packages/ttfw_idf/IDFDUT.py b/tools/ci/python_packages/ttfw_idf/IDFDUT.py index 6682760ae4..c4fbe61e49 100644 --- a/tools/ci/python_packages/ttfw_idf/IDFDUT.py +++ b/tools/ci/python_packages/ttfw_idf/IDFDUT.py @@ -460,8 +460,7 @@ 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)) class ESP32DUT(IDFDUT):