mirror of
https://github.com/systemd/systemd.git
synced 2024-11-23 10:13:34 +08: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
@ -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 New Issue
Block a user