fix. Adjusted sys exits on failed tests
This commit is contained in:
parent
68ab495a09
commit
2da3d62a14
|
|
@ -141,13 +141,12 @@ def main():
|
||||||
print()
|
print()
|
||||||
|
|
||||||
if failed_tests > 0:
|
if failed_tests > 0:
|
||||||
any_test_failed = True
|
sys.exit(1)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
print(f"{Fore.RED}Error processing regex {regex_id}: {str(e)}{Style.RESET_ALL}")
|
print(f"{Fore.RED}Error processing regex {regex_id}: {str(e)}{Style.RESET_ALL}")
|
||||||
print()
|
print()
|
||||||
|
|
||||||
if any_test_failed:
|
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
sys.exit(0)
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
main()
|
main()
|
||||||
Loading…
Reference in New Issue