mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-07 06:08:02 +02: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') (cherry picked from commitb9c4d2bb72)
This commit is contained in:
parent
44bb65485f
commit
af4671cda0
1 changed files with 2 additions and 2 deletions
|
|
@ -230,8 +230,8 @@ fi
|
||||||
|
|
||||||
if ! _is_true "$NMTST_USE_VALGRIND" 0; then
|
if ! _is_true "$NMTST_USE_VALGRIND" 0; then
|
||||||
export NM_TEST_UNDER_VALGRIND=0
|
export NM_TEST_UNDER_VALGRIND=0
|
||||||
"${NMTST_DBUS_RUN_SESSION[@]}" \
|
exec "${NMTST_DBUS_RUN_SESSION[@]}" \
|
||||||
exec "$TEST" "$@"
|
"$TEST" "$@"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ -z "${NMTST_VALGRIND}" ]]; then
|
if [[ -z "${NMTST_VALGRIND}" ]]; then
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue