From 0b521a943e384fb4b23e0f28bb6d57613c2c860c Mon Sep 17 00:00:00 2001 From: Ben McClelland Date: Fri, 15 Jan 2021 10:06:21 -0700 Subject: [PATCH] dont mark skipped tests as failure --- tests/run-tests.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tests/run-tests.sh b/tests/run-tests.sh index 4963ff9a..d2a8c9c9 100755 --- a/tests/run-tests.sh +++ b/tests/run-tests.sh @@ -523,9 +523,10 @@ if [ -n "$T_TRACE_GLOB" ]; then cat /sys/kernel/debug/tracing/trace > "$T_RESULTS/traces" fi -if [ "$skipped" == 0 -a "$failed" == 0 ]; then +status=1 +if [ "$failed" == 0 ]; then msg "all tests passed" - exit 0 + status=0 fi if [ "$skipped" != 0 ]; then @@ -534,4 +535,4 @@ fi if [ "$failed" != 0 ]; then msg "$failed tests failed, check fail.log" fi -exit 1 +exit $status