mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-19 19:03:07 +02:00
Test: Make 'make test' exit non-zero if tests failed
This commit is contained in:
parent
8e778712ea
commit
823e3d51d0
2 changed files with 3 additions and 7 deletions
|
@ -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__":
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue