mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
Merge branch 'ci/ttfw_fix_dut_exception_not_added_to_junit_report_v4.0' into 'release/v4.0'
ttfw: fix DUT exception not added to junit report (v4.0) See merge request espressif/esp-idf!13614
This commit is contained in:
commit
b23f8e21cd
@ -210,7 +210,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)
|
||||
|
@ -387,5 +387,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))
|
||||
|
Loading…
x
Reference in New Issue
Block a user