Message ID | 20210906163038.15381-6-phil@nwl.cc |
---|---|
State | Accepted |
Delegated to: | Pablo Neira |
Headers | show |
Series | [iptables,1/7] tests: iptables-test: Fix missing chain case | expand |
diff --git a/iptables-test.py b/iptables-test.py index 1790da3d0b074..5eafe5896414b 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())
If any test fails, return a non-zero exit code. Signed-off-by: Phil Sutter <phil@nwl.cc> --- iptables-test.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)