From 6ca386f2e540b568f21de1e031d23e14481452b9 Mon Sep 17 00:00:00 2001 From: brian Date: Sat, 17 Jun 2006 22:05:32 +0000 Subject: [PATCH] Need to remember that these tests are not just done "in-tree", they are also done on properly installed (make install, rpm, etc.) lustre so... When trying to install a modules, test if the module is in-tree and if not, try to modprobe it. --- lustre/tests/test-framework.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/lustre/tests/test-framework.sh b/lustre/tests/test-framework.sh index 81f7fb0..4982979 100644 --- a/lustre/tests/test-framework.sh +++ b/lustre/tests/test-framework.sh @@ -71,7 +71,13 @@ load_module() { module=$1 shift BASE=`basename $module $EXT` - lsmod | grep ${BASE} > /dev/null || insmod ${LUSTRE}/${module}${EXT} $@ + lsmod | grep -q ${BASE} || \ + if [ -f ${LUSTRE}/${module}${EXT} ]; then + insmod ${LUSTRE}/${module}${EXT} $@ + else + # must be testing a "make install" or "rpm" installation + modprobe $module $@ + fi } load_modules() { -- 1.8.3.1