From c32410edee6a855a1557359caecc5f0b98d8cbe1 Mon Sep 17 00:00:00 2001 From: Phil Sutter Date: Sat, 15 Oct 2022 11:43:01 +0200 Subject: tests: Adjust testsuite return codes to automake guidelines As per the manual[1]: "When no test protocol is in use, an exit status of 0 from a test script will denote a success, an exit status of 77 a skipped test, an exit status of 99 a hard error, and any other exit status will denote a failure." [1] https://www.gnu.org/software/automake/manual/html_node/Scripts_002dbased-Testsuites.html Signed-off-by: Phil Sutter --- iptables-test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'iptables-test.py') diff --git a/iptables-test.py b/iptables-test.py index dc031c2b..de1e1e95 100755 --- a/iptables-test.py +++ b/iptables-test.py @@ -579,7 +579,7 @@ def main(): if os.getuid() != 0: print("You need to be root to run this, sorry", file=sys.stderr) - return + return 77 if not args.netns and not args.no_netns and not spawn_netns(): print("Cannot run in own namespace, connectivity might break", -- cgit v1.2.3