autotest leak fix

This commit is contained in:
neo-dl 2023-04-11 14:13:53 +02:00
parent d38c39acfe
commit b69f827fe6

View File

@ -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