If any test fails, return a non-zero exit code. Signed-off-by: Phil Sutter <phil@xxxxxx> --- iptables-test.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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()) -- 2.33.0