mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-08 12:28:11 +02:00
tests: abort test runner if exec fails
(cherry picked from commit2ad8e6acae) (cherry picked from commit24ab6b6cdc) (cherry picked from commitb10d90a549) (cherry picked from commit3ca48236e4)
This commit is contained in:
parent
e15cc4d0fc
commit
96dec0e21e
1 changed files with 1 additions and 0 deletions
|
|
@ -232,6 +232,7 @@ if ! _is_true "$NMTST_USE_VALGRIND" 0; then
|
||||||
export NM_TEST_UNDER_VALGRIND=0
|
export NM_TEST_UNDER_VALGRIND=0
|
||||||
exec "${NMTST_DBUS_RUN_SESSION[@]}" \
|
exec "${NMTST_DBUS_RUN_SESSION[@]}" \
|
||||||
"$TEST" "$@"
|
"$TEST" "$@"
|
||||||
|
die "exec \"$TEST\" failed"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ -z "${NMTST_VALGRIND}" ]]; then
|
if [[ -z "${NMTST_VALGRIND}" ]]; then
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue