From: Daan De Meyer Date: Mon, 27 May 2024 17:40:35 +0000 (+0200) Subject: TEST-02-UNITTESTS: Pass asan environment to units if it is available X-Git-Tag: v256-rc4~81^2~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9029f20b35069d068b8be9fdb16fd6874cd420a0;p=thirdparty%2Fsystemd.git TEST-02-UNITTESTS: Pass asan environment to units if it is available Some tests (e.g. test-udev.py) might trigger one of our NSS modules which means LD_PRELOAD has to be configured properly. --- diff --git a/test/units/TEST-02-UNITTESTS.sh b/test/units/TEST-02-UNITTESTS.sh index aac55ea17ce..63924251300 100755 --- a/test/units/TEST-02-UNITTESTS.sh +++ b/test/units/TEST-02-UNITTESTS.sh @@ -55,7 +55,13 @@ run_test() { ;; esac - systemd-run --quiet --property Delegate=1 --property "Environment=$environment" --unit="$name" --wait "$test" && ret=0 || ret=$? + systemd-run \ + --quiet \ + --property Delegate=1 \ + --property EnvironmentFile=-/usr/lib/systemd/systemd-asan-env \ + --property "Environment=$environment" \ + --unit="$name" \ + --wait "$test" && ret=0 || ret=$? exec {LOCK_FD}> /lock flock --exclusive ${LOCK_FD}