run-nm-test: Just use exec instead of running and exiting

(cherry picked from commit 6a58c55ca4)
(cherry picked from commit 44bb65485f)
This commit is contained in:
Marco Trevisan (Treviño) 2019-09-30 19:46:36 +02:00 committed by Thomas Haller
parent 43ff43e8b1
commit 884cd13f95

View file

@ -231,8 +231,7 @@ fi
if ! _is_true "$NMTST_USE_VALGRIND" 0; then
export NM_TEST_UNDER_VALGRIND=0
"${NMTST_DBUS_RUN_SESSION[@]}" \
"$TEST" "$@"
exit $?
exec "$TEST" "$@"
fi
if [[ -z "${NMTST_VALGRIND}" ]]; then