From: Laszlo Gombos Date: Tue, 18 Oct 2022 23:51:32 +0000 (+0000) Subject: feat(test): add new module to share code between tests X-Git-Tag: 058~88 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f5689b42bdb9dfcb0f1b610d7db845ceac985061;p=thirdparty%2Fdracut.git feat(test): add new module to share code between tests --- diff --git a/modules.d/80test/module-setup.sh b/modules.d/80test/module-setup.sh new file mode 100755 index 000000000..74de1b80e --- /dev/null +++ b/modules.d/80test/module-setup.sh @@ -0,0 +1,13 @@ +#!/bin/bash + +check() { + # Only include the module if another module requires it + return 255 +} + +depends() { + echo "debug" +} + +install() { +} diff --git a/test/TEST-03-USR-MOUNT/test.sh b/test/TEST-03-USR-MOUNT/test.sh index 50f471953..9fbe40de5 100755 --- a/test/TEST-03-USR-MOUNT/test.sh +++ b/test/TEST-03-USR-MOUNT/test.sh @@ -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 \