diff options
author | Phil Sutter <phil@nwl.cc> | 2021-09-06 13:49:34 +0200 |
---|---|---|
committer | Phil Sutter <phil@nwl.cc> | 2021-09-13 17:00:51 +0200 |
commit | 7559af835d8f58375f797f895e1a5410027127d9 (patch) | |
tree | e968dffb6683b923369521d5f0bbd5fe72ace562 | |
parent | c057939d80cc6219a137784c195e14ee1bc62a58 (diff) |
tests: iptables-test: Exit non-zero on error
If any test fails, return a non-zero exit code.
Signed-off-by: Phil Sutter <phil@nwl.cc>
-rwxr-xr-x | iptables-test.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/iptables-test.py b/iptables-test.py index 1790da3d..5eafe589 100755 --- a/iptables-test.py +++ b/iptables-test.py @@ -408,7 +408,8 @@ def main(): test_files += 1 print("%d test files, %d unit tests, %d passed" % (test_files, tests, passed)) + return passed - tests if __name__ == '__main__': - main() + sys.exit(main()) |