diff --git a/scripts/test b/scripts/test index 9053d0c9..1b201236 100755 --- a/scripts/test +++ b/scripts/test @@ -13,6 +13,16 @@ then exit 1 fi +modules=("uio_pci_generic" "nvme-tcp") + +for module in "${modules[@]}" +do + if ! modprobe "$module"; then + echo "Failed to load $module module" + exit 1 + fi +done + mount --rbind /host/dev /dev mount --rbind /host/sys /sys trap "umount /dev && umount /sys" EXIT