Whamcloud - gitweb
LU-336 Tighten matching criteria in module_loaded
[fs/lustre-release.git] / lustre / tests / test-framework.sh
index e200b89..6fbddd6 100644 (file)
@@ -265,7 +265,7 @@ esac
 
 
 module_loaded () {
-   /sbin/lsmod | grep -q $1
+   /sbin/lsmod | grep -q "^\<$1\>"
 }
 
 # Load a module on the system where this is running.