]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
feat(test): add new module to share code between tests
authorLaszlo Gombos <laszlo.gombos@gmail.com>
Tue, 18 Oct 2022 23:51:32 +0000 (23:51 +0000)
committerAntonio Álvarez Feijoo <antonio.feijoo@suse.com>
Mon, 7 Nov 2022 17:04:47 +0000 (18:04 +0100)
modules.d/80test/module-setup.sh [new file with mode: 0755]
test/TEST-03-USR-MOUNT/test.sh

diff --git a/modules.d/80test/module-setup.sh b/modules.d/80test/module-setup.sh
new file mode 100755 (executable)
index 0000000..74de1b8
--- /dev/null
@@ -0,0 +1,13 @@
+#!/bin/bash
+
+check() {
+    # Only include the module if another module requires it
+    return 255
+}
+
+depends() {
+    echo "debug"
+}
+
+install() {
+}
index 50f471953f2d088436e8bda0f10c87e76398bdb4..9fbe40de52a0a650b3e8164ff922d2340fc7444e 100755 (executable)
@@ -137,7 +137,7 @@ test_setup() {
         inst_hook emergency 000 ./hard-off.sh
     )
     "$basedir"/dracut.sh -l -i "$TESTDIR"/overlay / \
-        -a "debug watchdog" \
+        -a "test watchdog" \
         -o "network kernel-network-modules" \
         -d "piix ide-gd_mod ata_piix btrfs sd_mod i6300esb ib700wdt" \
         --no-hostonly-cmdline -N \