autotest leak fix
This commit is contained in:
parent
d38c39acfe
commit
b69f827fe6
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user