Skip to content

Commit

Permalink
exit non zero when fail
Browse files Browse the repository at this point in the history
  • Loading branch information
johan-t committed Jan 13, 2024
1 parent c5902d9 commit 3667ece
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test_accuracy_up_or_down.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import subprocess
import re
import sys

# ANSI escape codes for colors
GREEN = '\033[92m' # Green text
Expand Down Expand Up @@ -38,3 +39,4 @@ def test_accuracy_increase():
print(GREEN + "Test passed: Accuracy has been increased! 🎉" + ENDC)
else:
print(RED + "Test failed: Accuracy has not been increased or no accuracy update was found. 😢" + ENDC)
sys.exit(1) # Exit with a non-zero status code to indicate failure

0 comments on commit 3667ece

Please sign in to comment.