summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2020-04-20 11:49:31 +0200
committerThomas Haller <thaller@redhat.com>2020-04-20 11:49:31 +0200
commit2ad8e6acae7b2c76d40e00a60a85aef0ea625de5 (patch)
treee19ce997bbd2b7fed2ed04a7695615b70f936493
parent40b2cf7a0c652814638207b2951c6f7c80aa8033 (diff)
downloadNetworkManager-2ad8e6acae7b2c76d40e00a60a85aef0ea625de5.tar.gz
tests: abort test runner if exec fails
-rwxr-xr-xtools/run-nm-test.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/run-nm-test.sh b/tools/run-nm-test.sh
index 21f0d7c154..16d9d8a7ab 100755
--- a/tools/run-nm-test.sh
+++ b/tools/run-nm-test.sh
@@ -232,6 +232,7 @@ if ! _is_true "$NMTST_USE_VALGRIND" 0; then
export NM_TEST_UNDER_VALGRIND=0
exec "${NMTST_DBUS_RUN_SESSION[@]}" \
"$TEST" "$@"
+ die "exec \"$TEST\" failed"
fi
if [[ -z "${NMTST_VALGRIND}" ]]; then