diff --git a/components/idf_test/unit_test/TestCaseScript/IDFUnitTest/UnitTest.py b/components/idf_test/unit_test/TestCaseScript/IDFUnitTest/UnitTest.py index 2af4747e5d..ab29a97f9b 100644 --- a/components/idf_test/unit_test/TestCaseScript/IDFUnitTest/UnitTest.py +++ b/components/idf_test/unit_test/TestCaseScript/IDFUnitTest/UnitTest.py @@ -32,6 +32,7 @@ class UnitTest(PerformanceTCBase.PerformanceTCBase): data += self.serial_read_data("UT1") if re.search('[^0] Tests 0 F', data): #check that number of tests run != 0 and number of tests failed == 0 self.set_result("Success") + break else: self.set_result("Fail")