Python: Make validTest error on empty output again

I accidentially disabled that when introducing the ability to handle more than
one OK.
This commit is contained in:
Rasmus Wriedt Larsen
2020-09-01 14:42:11 +02:00
parent 621e3f6c3c
commit ab06c459f4

View File

@@ -1,5 +1,5 @@
def check_output(outtext, f):
if all(s == "OK" for s in outtext.splitlines()):
if outtext and all(s == "OK" for s in outtext.splitlines()):
pass
else:
raise RuntimeError("Function failed", outtext, f)