From: Frantisek Sumsal Date: Mon, 6 Jun 2022 12:47:03 +0000 (+0200) Subject: test: fix TEST-70 under sanitizers X-Git-Tag: v252-rc1~860^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F23643%2Fhead;p=thirdparty%2Fsystemd.git test: fix TEST-70 under sanitizers Addresses: * https://github.com/systemd/systemd/issues/23578#issuecomment-1144089821 * https://github.com/systemd/systemd-centos-ci/pull/496#issuecomment-1144640305 --- diff --git a/test/units/testsuite-70.sh b/test/units/testsuite-70.sh index f395ef4e5e1..5e4fa1877cc 100755 --- a/test/units/testsuite-70.sh +++ b/test/units/testsuite-70.sh @@ -4,12 +4,11 @@ set -ex export SYSTEMD_LOG_LEVEL=debug - # Prepare fresh disk image img="/var/tmp/test.img" dd if=/dev/zero of=$img bs=1024k count=20 status=none echo -n passphrase >/tmp/passphrase -cryptsetup luksFormat -q --use-urandom $img /tmp/passphrase +LD_PRELOAD="${ASAN_RT_PATH:-}" cryptsetup luksFormat -q --use-urandom $img /tmp/passphrase # Enroll unlock with default PCR policy env PASSWORD=passphrase systemd-cryptenroll --tpm2-device=auto $img