]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test-fstab-generator: fix test on systemd with systemd-boot
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 30 May 2023 20:53:43 +0000 (22:53 +0200)
committerLuca Boccassi <luca.boccassi@gmail.com>
Wed, 31 May 2023 09:59:50 +0000 (10:59 +0100)
(… or other boot loaders implementing the Boot Loader Interface.)

Fixes #27857.

test/test-fstab-generator.sh

index 68c9d0631e2e56e898f1b8ea51a70aebe9902e05..c390c785c9855ac7be54acfdcc7fadeef81d97c0 100755 (executable)
@@ -19,6 +19,10 @@ src="$(dirname "$0")/testdata/test-fstab-generator"
 # fsck(8) is located in /usr/sbin on Debian
 PATH=$PATH:/usr/sbin
 
+# systemd-pcrfs@.service could be enabled or not, depending on the host state
+# of the host system. Override the measurement to avoid the issue.
+export SYSTEMD_FORCE_MEASURE=0
+
 for f in "$src"/test-*.input; do
     echo "*** Running $f"