From 66960ce25cd03777906eafeaca42c2da60a7236b Mon Sep 17 00:00:00 2001 From: Derek Su Date: Mon, 26 Feb 2024 12:36:12 +0000 Subject: [PATCH] ci: load kernel modules uio_pci_generic and nvme-tcp Longhorn 7985 Signed-off-by: Derek Su --- scripts/test | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/scripts/test b/scripts/test index 9053d0c99..a2777abd2 100755 --- a/scripts/test +++ b/scripts/test @@ -13,6 +13,17 @@ then exit 1 fi +modules=(uio_pci_generic nvme-tcp) +for module in "${modules[@]}" +do + modprobe $module + if [ $? -ne 0 ] + 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