From: David Goulet Date: Mon, 16 Apr 2012 15:35:34 +0000 (-0400) Subject: Fix: replace 'modprobe -l' by lsmod in kernel test X-Git-Tag: v2.0.1~3 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=0e4ec34fb67a1c7f79810de437ab22f496ecd430;p=lttng-tools.git Fix: replace 'modprobe -l' by lsmod in kernel test The -l option does not exist anymore on recent version of modprobe. Use lsmod instead. Signed-off-by: David Goulet --- diff --git a/tests/lttng/run-kernel-tests.sh b/tests/lttng/run-kernel-tests.sh index d5a41382b..b1a9057a4 100755 --- a/tests/lttng/run-kernel-tests.sh +++ b/tests/lttng/run-kernel-tests.sh @@ -27,7 +27,7 @@ function start_tests () function check_lttng_modules () { - local out=`modprobe -l | grep lttng` + local out=`lsmod | grep lttng` if [ -z "$out" ]; then echo "LTTng modules not detected. Aborting kernel tests!" echo ""