diff --git a/src/ui/test_leak/test_leak.py b/src/ui/test_leak/test_leak.py index 88b233b..4fe6330 100644 --- a/src/ui/test_leak/test_leak.py +++ b/src/ui/test_leak/test_leak.py @@ -98,10 +98,13 @@ class Test_Leak(Test_Test): if "Running test: result" in data["tecna_t3"]: result = data["tecna_t3"]["Running test: result"] - if self.step.spec.get("autotest", False) is not True: - ok = type(result) is str and "passed" in result.lower() + step=self.step.spec.get("autotest", "") + if step == "ok_check": + ok = type(result) is str and "passed" in result.lower() # AUTOTEST - NO LEAK + elif step == "ko_check": + ok = type(result) is str and "failed" in result.lower() # AUTOTEST - LEAK else: - ok = type(result) is str and "failed" in result.lower() + ok = type(result) is str and "passed" in result.lower() # NORMAL TEST if "digital_io" in self.components.keys(): # RESET RELAYS