Update run_tests.py
This commit is contained in:
parent
7cb4b28da8
commit
eece52600b
@ -41,10 +41,14 @@ for vf in valid_files:
|
|||||||
|
|
||||||
stdout, _ = proc.communicate()
|
stdout, _ = proc.communicate()
|
||||||
|
|
||||||
|
try:
|
||||||
parsed = json.loads(stdout)
|
parsed = json.loads(stdout)
|
||||||
|
except:
|
||||||
|
parsed = None
|
||||||
|
pass
|
||||||
|
|
||||||
match = original == parsed
|
match = original == parsed
|
||||||
|
|
||||||
print(
|
print(
|
||||||
f"{str(vf):<{name_width + 3}} {TermFormat.BOLD}{TermFormat.OKGREEN if match else TermFormat.FAIL}{'PASSED' if match else 'FAILED'}{TermFormat.ENDC}"
|
f"{str(vf):{name_width + 3}} {TermFormat.BOLD}{TermFormat.OKGREEN if match else TermFormat.FAIL}{'PASSED' if match else 'FAILED'}{TermFormat.ENDC}"
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user