Skip to content

Commit

Permalink
feat(test): add new module to share code between tests
Browse files Browse the repository at this point in the history
  • Loading branch information
LaszloGombos authored and aafeijoo-suse committed Nov 7, 2022
1 parent c449980 commit f5689b4
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
13 changes: 13 additions & 0 deletions modules.d/80test/module-setup.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/bash

check() {
# Only include the module if another module requires it
return 255
}

depends() {
echo "debug"
}

install() {
}
2 changes: 1 addition & 1 deletion test/TEST-03-USR-MOUNT/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down

0 comments on commit f5689b4

Please sign in to comment.