mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-24 20:40:06 +01:00
run-nm-test: fix using exec instead of running and exiting
Otherwise, the script tries to run
dbus-run-session -- exec ...
which fails (because `exec` is a shell command, not a program).
After the failure, the code falls through to run the test under
valgrind.
Fixes: 6a58c55ca4 ('run-nm-test: Just use exec instead of running and exiting')
This commit is contained in:
parent
1224bb19a6
commit
b9c4d2bb72
1 changed files with 2 additions and 2 deletions
|
|
@ -230,8 +230,8 @@ fi
|
|||
|
||||
if ! _is_true "$NMTST_USE_VALGRIND" 0; then
|
||||
export NM_TEST_UNDER_VALGRIND=0
|
||||
"${NMTST_DBUS_RUN_SESSION[@]}" \
|
||||
exec "$TEST" "$@"
|
||||
exec "${NMTST_DBUS_RUN_SESSION[@]}" \
|
||||
"$TEST" "$@"
|
||||
fi
|
||||
|
||||
if [[ -z "${NMTST_VALGRIND}" ]]; then
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue