summaryrefslogtreecommitdiffstats
path: root/iptables/tests/shell/run-tests.sh
diff options
context:
space:
mode:
authorPhil Sutter <phil@nwl.cc>2021-09-06 17:28:30 +0200
committerPhil Sutter <phil@nwl.cc>2021-09-13 17:00:51 +0200
commit481626bb4e9c51477ec99dde0727e3af69d2380f (patch)
tree96225d45d2f5442db9db688f7cf52942b3685383 /iptables/tests/shell/run-tests.sh
parent7559af835d8f58375f797f895e1a5410027127d9 (diff)
tests: shell: Return non-zero on error
If any test fails, return a non-zero exit code. Signed-off-by: Phil Sutter <phil@nwl.cc>
Diffstat (limited to 'iptables/tests/shell/run-tests.sh')
-rwxr-xr-xiptables/tests/shell/run-tests.sh2
1 files changed, 1 insertions, 1 deletions
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