Please, consider merging the attached patch. thanks.
commit 3497067ca187047c61d89ccad6eab4ebf5df9219 Author: Arturo Borrero Gonzalez <arturo@xxxxxxxxxxxxx> Date: Wed Nov 28 14:31:57 2018 +0100 tests: fix return codes Try to return != 0 if a testsuite fails. Signed-off-by: Arturo Borrero Gonzalez <arturo@xxxxxxxxxxxxx> diff --git a/tests/build/run-tests.sh b/tests/build/run-tests.sh index 626f6fd..b0560da 100755 --- a/tests/build/run-tests.sh +++ b/tests/build/run-tests.sh @@ -52,4 +52,4 @@ done rm -rf $tmpdir echo "results: [OK] $ok [FAILED] $failed [TOTAL] $((ok+failed))" -exit 0 +exit $failed diff --git a/tests/monitor/run-tests.sh b/tests/monitor/run-tests.sh index f408988..0478cf6 100755 --- a/tests/monitor/run-tests.sh +++ b/tests/monitor/run-tests.sh @@ -17,7 +17,7 @@ fi testdir=$(mktemp -d) if [ ! -d $testdir ]; then echo "Failed to create test directory" >&2 - exit 0 + exit 1 fi trap "rm -rf $testdir; $nft flush ruleset" EXIT diff --git a/tests/shell/run-tests.sh b/tests/shell/run-tests.sh index 5b0ec41..fdca5fb 100755 --- a/tests/shell/run-tests.sh +++ b/tests/shell/run-tests.sh @@ -152,4 +152,4 @@ echo "" msg_info "results: [OK] $ok [FAILED] $failed [TOTAL] $((ok+failed))" kernel_cleanup -exit 0 +exit $failed