problems: Return non-zero code when some tests fail
This commit is contained in:
committed by
Paul Beckingham
parent
cd736a0d70
commit
f22322bc18
@@ -127,3 +127,7 @@ if __name__ == "__main__":
|
||||
print()
|
||||
print(color(expected_str, "yellow"))
|
||||
print_category(expected)
|
||||
|
||||
# If we encoutered any failures, return non-zero code
|
||||
if sum(errors.values()):
|
||||
sys.exit(1)
|
||||
|
||||
Reference in New Issue
Block a user