]> git.ipfire.org Git - thirdparty/iptables.git/commitdiff
tests: shell: Return non-zero on error
authorPhil Sutter <phil@nwl.cc>
Mon, 6 Sep 2021 15:28:30 +0000 (17:28 +0200)
committerPhil Sutter <phil@nwl.cc>
Mon, 13 Sep 2021 15:00:51 +0000 (17:00 +0200)
If any test fails, return a non-zero exit code.

Signed-off-by: Phil Sutter <phil@nwl.cc>
iptables/tests/shell/run-tests.sh

index 65c37adb75f2ad95f91610ccd4d55ae059efa009..7878760fdcc4d9ef65c65e0c30b5adbb88ab9fc1 100755 (executable)
@@ -195,4 +195,4 @@ failed=$((legacy_fail+failed))
 
 msg_info "combined results: [OK] $ok [FAILED] $failed [TOTAL] $((ok+failed))"
 
-exit 0
+exit -$failed