Skip to content

Commit

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

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

depends() {
echo "qemu"
}
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 @@ -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 \
Expand Down

0 comments on commit 54b963c

Please sign in to comment.