From 22b71b70e51149c03853f884296749d155880d26 Mon Sep 17 00:00:00 2001 From: Derek Su Date: Mon, 26 Feb 2024 12:46:22 +0000 Subject: [PATCH] ci: load kernel modules uio_pci_generic and nvme-tcp Longhorn 7985 Signed-off-by: Derek Su --- scripts/test | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/scripts/test b/scripts/test index 6146142c..f5efee3a 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