From b9c4d2bb72d4aeae256705317fb932cda22d133e Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Wed, 2 Oct 2019 09:40:11 +0200 Subject: [PATCH] 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: 6a58c55ca44a ('run-nm-test: Just use exec instead of running and exiting') --- tools/run-nm-test.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/run-nm-test.sh b/tools/run-nm-test.sh index 80503bcce..140236dcb 100755 --- a/tools/run-nm-test.sh +++ b/tools/run-nm-test.sh @@ -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