From: Harald Hoyer Date: Wed, 26 Feb 2020 16:05:11 +0000 (+0100) Subject: TEST-04-FULL-SYSTEMD: report failure on rootfs creation X-Git-Tag: 050~45 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=074ac625762a0560ad6a1867a21bdfd1fcc4c372;p=thirdparty%2Fdracut.git TEST-04-FULL-SYSTEMD: report failure on rootfs creation --- diff --git a/test/TEST-04-FULL-SYSTEMD/create-root.sh b/test/TEST-04-FULL-SYSTEMD/create-root.sh index 0a662576c..8a4bdaf97 100755 --- a/test/TEST-04-FULL-SYSTEMD/create-root.sh +++ b/test/TEST-04-FULL-SYSTEMD/create-root.sh @@ -1,5 +1,6 @@ #!/bin/sh # don't let udev and this script step on eachother's toes +set -x for x in 64-lvm.rules 70-mdadm.rules 99-mount-rules; do > "/etc/udev/rules.d/$x" done diff --git a/test/TEST-04-FULL-SYSTEMD/test.sh b/test/TEST-04-FULL-SYSTEMD/test.sh index 337f02196..4ef6e6726 100755 --- a/test/TEST-04-FULL-SYSTEMD/test.sh +++ b/test/TEST-04-FULL-SYSTEMD/test.sh @@ -256,8 +256,10 @@ EOF -m 512M -smp 2 -nographic -net none \ -append "root=/dev/fakeroot rw rootfstype=btrfs quiet console=ttyS0,115200n81 selinux=0" \ -initrd $TESTDIR/initramfs.makeroot || return 1 - grep -F -m 1 -q dracut-root-block-created $TESTDIR/root.btrfs || return 1 - + if ! grep -F -m 1 -q dracut-root-block-created $TESTDIR/root.btrfs; then + echo "Could not create root filesystem" + return 1 + fi ( export initdir=$TESTDIR/overlay