From: Phil Sutter Date: Mon, 6 Sep 2021 15:28:30 +0000 (+0200) Subject: tests: shell: Return non-zero on error X-Git-Tag: v1.8.8~125 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=481626bb4e9c51477ec99dde0727e3af69d2380f;p=thirdparty%2Fiptables.git tests: shell: Return non-zero on error If any test fails, return a non-zero exit code. Signed-off-by: Phil Sutter --- 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