Update run_tests.py
This commit is contained in:
		| @@ -41,10 +41,14 @@ for vf in valid_files: | ||||
|  | ||||
|     stdout, _ = proc.communicate() | ||||
|  | ||||
|     parsed = json.loads(stdout) | ||||
|     try: | ||||
|         parsed = json.loads(stdout) | ||||
|     except: | ||||
|         parsed = None | ||||
|         pass | ||||
|  | ||||
|     match = original == parsed | ||||
|  | ||||
|     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}" | ||||
|     ) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user