From: Laszlo Gombos Date: Wed, 19 Oct 2022 00:15:54 +0000 (+0000) Subject: feat(test-makeroot): add new module to share code between tests X-Git-Tag: 058~86 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=54b963ca35a3a4cc8bcdb35e5e9ebb74af09191e;p=thirdparty%2Fdracut.git feat(test-makeroot): add new module to share code between tests This module is used for tests to create root filesystem. --- diff --git a/modules.d/80test-makeroot/module-setup.sh b/modules.d/80test-makeroot/module-setup.sh new file mode 100755 index 000000000..798c7b8de --- /dev/null +++ b/modules.d/80test-makeroot/module-setup.sh @@ -0,0 +1,10 @@ +#!/bin/bash + +check() { + # Only include the module if another module requires it + return 255 +} + +depends() { + echo "qemu" +} diff --git a/test/TEST-03-USR-MOUNT/test.sh b/test/TEST-03-USR-MOUNT/test.sh index 5fffcf30a..bfb874a2b 100755 --- a/test/TEST-03-USR-MOUNT/test.sh +++ b/test/TEST-03-USR-MOUNT/test.sh @@ -97,7 +97,7 @@ test_setup() { # We do it this way so that we do not risk trashing the host mdraid # devices, volume groups, encrypted partitions, etc. "$basedir"/dracut.sh -l -i "$TESTDIR"/overlay / \ - -m "dash btrfs rootfs-block kernel-modules qemu" \ + -m "test-makeroot dash btrfs rootfs-block kernel-modules" \ -d "piix ide-gd_mod ata_piix btrfs sd_mod" \ --nomdadmconf \ --nohardlink \