summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2022-02-18 18:53:07 +0100
committerThomas Haller <thaller@redhat.com>2022-02-18 19:10:22 +0100
commitaff40f736c63cda19b87533578e0ca3435943f38 (patch)
tree38fbbad1fadc5e6a4d65a48c7d226dd9489b4f33
parent91f84249d5becf28629601f2369e7cd97fab5500 (diff)
downloadNetworkManager-aff40f736c63cda19b87533578e0ca3435943f38.tar.gz
tests: propagate 77 exit code from "tools/run-nm-test.sh"
This is important. We must not swallow 77, which has the meaning that the test was skipped. Fixes: f65747f6e9ed ('tests: let "run-nm-test.sh" fail with exit code 1 on failure')
-rwxr-xr-xtools/run-nm-test.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/run-nm-test.sh b/tools/run-nm-test.sh
index 59a489332a..c88a1bd573 100755
--- a/tools/run-nm-test.sh
+++ b/tools/run-nm-test.sh
@@ -302,8 +302,8 @@ if ! _is_true "$NMTST_USE_VALGRIND" 0; then
export NM_TEST_UNDER_VALGRIND=0
"${NMTST_DBUS_RUN_SESSION[@]}" "$TEST" "${TEST_ARGV[@]}"
r=$?
- [ $r == 0 ] || die "exec \"$TEST\" failed with exit code $r"
- exit 0
+ [ $r == 0 -o $r == 77 ] || die "exec \"$TEST\" failed with exit code $r"
+ exit $r
fi
if [[ -z "${NMTST_VALGRIND}" ]]; then