From 481626bb4e9c51477ec99dde0727e3af69d2380f Mon Sep 17 00:00:00 2001 From: Phil Sutter Date: Mon, 6 Sep 2021 17:28:30 +0200 Subject: tests: shell: Return non-zero on error If any test fails, return a non-zero exit code. Signed-off-by: Phil Sutter --- iptables/tests/shell/run-tests.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iptables/tests/shell/run-tests.sh b/iptables/tests/shell/run-tests.sh index 65c37adb..7878760f 100755 --- a/iptables/tests/shell/run-tests.sh +++ b/iptables/tests/shell/run-tests.sh @@ -195,4 +195,4 @@ failed=$((legacy_fail+failed)) msg_info "combined results: [OK] $ok [FAILED] $failed [TOTAL] $((ok+failed))" -exit 0 +exit -$failed -- cgit v1.2.3