mirror of
https://github.com/systemd/systemd
synced 2024-11-05 18:25:39 +00:00
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.
This commit is contained in:
parent
aae2990907
commit
9029f20b35
1 changed files with 7 additions and 1 deletions
|
@ -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}
|
||||
|
|
Loading…
Reference in a new issue