Tests: Cleanup redundant code and use printing helper functions
[lttng-tools.git] / tests / kernel / run-kernel-tests.sh
index 69f6f95c30ad14eeb263a78c901dacd37652a45d..f89cd7b260d2a1fccaf9669ae8eebbda6fda8dbb 100755 (executable)
@@ -37,7 +37,7 @@ function start_tests ()
 
 function check_lttng_modules ()
 {
-       local out=`lsmod | grep lttng`
+       local out=`ls /lib/modules/$(uname -r)/extra | grep lttng`
        if [ -z "$out" ]; then
                echo "LTTng modules not detected. Aborting kernel tests!"
                echo ""
@@ -46,9 +46,10 @@ function check_lttng_modules ()
        fi
 }
 
-echo -e "\n---------------------"
-echo -e "Testing Kernel tracer"
-echo -e "---------------------"
+
+TEST_DESC="Testing Kernel tracer"
+
+print_test_banner "$TEST_DESC"
 
 # Detect lttng-modules installed
 check_lttng_modules
This page took 0.023196 seconds and 4 git commands to generate.