Tests: use modprobe to test for the presence of lttng-modules
[lttng-tools.git] / tests / regression / tools / snapshots / test_kernel_streaming
index 7653bd9f970923d47aea71a5dcd22a96edc5b487..bdbcc4929eda08bacb2dacc621644786d7aced4c 100755 (executable)
@@ -29,12 +29,6 @@ NUM_TESTS=36
 
 source $TESTDIR/utils/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 snapshot_add_output ()
 {
        local sess_name=$1
@@ -143,6 +137,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
 
This page took 0.023162 seconds and 4 git commands to generate.