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)
|
print_category(expected)
|
||||||
|
|
||||||
# If we encoutered any failures, return non-zero code
|
# If we encoutered any failures, return non-zero code
|
||||||
if sum(errors.values()):
|
sys.exit(1 if error_int or unexpected_int else 0)
|
||||||
sys.exit(1)
|
|
||||||
|
|||||||
@@ -198,11 +198,8 @@ def main():
|
|||||||
runner = TestRunner()
|
runner = TestRunner()
|
||||||
runner.start()
|
runner.start()
|
||||||
|
|
||||||
# If we're producing summary report, propagate the return code
|
# Propagate the return code
|
||||||
if not cmd_args.verbose:
|
return runner.show_report()
|
||||||
return runner.show_report()
|
|
||||||
else:
|
|
||||||
return 0
|
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
|
|||||||
Reference in New Issue
Block a user