test: install test specific modules in test_append_files()

This commit is contained in:
Yu Watanabe 2023-05-20 05:01:05 +09:00
parent 9e36da1541
commit 23ff8a776c
3 changed files with 6 additions and 4 deletions

View file

@ -9,6 +9,8 @@ TEST_DESCRIPTION="Tests for systemd-logind"
test_append_files() { test_append_files() {
image_install -o evemu-device evemu-event image_install -o evemu-device evemu-event
instmods uinput
generate_module_dependencies
} }
do_test "$@" do_test "$@"

View file

@ -32,6 +32,9 @@ KERNEL_APPEND="${KERNEL_APPEND:-} ${KERNEL_CREDS[*]}"
test_append_files() { test_append_files() {
instmods qemu_fw_cfg instmods qemu_fw_cfg
if get_bool "$LOOKS_LIKE_SUSE"; then
instmods dmi-sysfs
fi
generate_module_dependencies generate_module_dependencies
} }

View file

@ -966,13 +966,10 @@ install_modules() {
instmods loop =block instmods loop =block
instmods nls_ascii =nls instmods nls_ascii =nls
instmods overlay =overlayfs instmods overlay =overlayfs
# for TEST-35-LOGIN instmods scsi_debug
instmods scsi_debug uinput
if get_bool "$LOOKS_LIKE_SUSE"; then if get_bool "$LOOKS_LIKE_SUSE"; then
instmods ext4 instmods ext4
# for TEST-54-CREDS
instmods dmi-sysfs
fi fi
} }