Test: Make 'make test' exit non-zero if tests failed
This commit is contained in:
committed by
Paul Beckingham
parent
8e778712ea
commit
823e3d51d0
@@ -129,5 +129,4 @@ if __name__ == "__main__":
|
||||
print_category(expected)
|
||||
|
||||
# If we encoutered any failures, return non-zero code
|
||||
if sum(errors.values()):
|
||||
sys.exit(1)
|
||||
sys.exit(1 if error_int or unexpected_int else 0)
|
||||
|
||||
@@ -198,11 +198,8 @@ def main():
|
||||
runner = TestRunner()
|
||||
runner.start()
|
||||
|
||||
# If we're producing summary report, propagate the return code
|
||||
if not cmd_args.verbose:
|
||||
return runner.show_report()
|
||||
else:
|
||||
return 0
|
||||
# Propagate the return code
|
||||
return runner.show_report()
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
||||
Reference in New Issue
Block a user