From: Frantisek Sumsal Date: Thu, 15 Jun 2023 11:11:24 +0000 (+0200) Subject: test: set $PATH to something predictable in the ASan wrapper X-Git-Tag: v254-rc1~195 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3bba91ef44f58ed98ed46c76fbf16db21cef5c25;p=thirdparty%2Fsystemd.git test: set $PATH to something predictable in the ASan wrapper This is still necessary when running with clang's ASan, as it uses an external binary to symbolize the stack traces. Follow-up to ba79e8c2ccd. --- diff --git a/test/test-functions b/test/test-functions index 0c20e60ad3d..0a5a67f7d16 100644 --- a/test/test-functions +++ b/test/test-functions @@ -1000,8 +1000,10 @@ EOF #!/usr/bin/env bash set -eux +export PATH="/sbin:/bin:/usr/sbin:/usr/bin" export ${default_environment[@]} [[ -n "\$ASAN_OPTIONS" && -n "\$UBSAN_OPTIONS" ]] + exec "$ROOTLIBDIR/systemd" "\$@" EOF chmod 0755 "$asan_wrapper"