Tests: use modprobe to test for the presence of lttng-modules
[lttng-tools.git] / tests / regression / tools / rotation / test_kernel
index 3ef3b7dfd298e85dd8d42f2e0c9d66d77481f76b..0d72f9eaec1fbc1aec279c1ef20c783959349d98 100755 (executable)
@@ -29,12 +29,6 @@ NUM_TESTS=68
 source $TESTDIR/utils/utils.sh
 source $CURDIR/rotate_utils.sh
 
-# LTTng kernel modules check
-out=`ls /lib/modules/$(uname -r)/extra | grep lttng`
-if [ -z "$out" ]; then
-       BAIL_OUT "LTTng modules not detected."
-fi
-
 function lttng_create_session_uri
 {
        # Create session with default path
@@ -126,6 +120,8 @@ fi
 
 skip $isroot "Root access is needed. Skipping all kernel streaming tests." $NUM_TESTS ||
 {
+       validate_lttng_modules_present
+
        start_lttng_relayd "-o $TRACE_PATH"
        start_lttng_sessiond
        modprobe lttng-test
This page took 0.0282 seconds and 4 git commands to generate.