Tests: use modprobe to test for the presence of lttng-modules
[lttng-tools.git] / tests / regression / tools / regen-metadata / test_kernel
index fd139aeefbf1b173dd655dad496ea34f9896d425..1849b9cd0b10c9ea66bbbcb5a8ebe92ac03e956a 100755 (executable)
@@ -28,12 +28,6 @@ NUM_TESTS=18
 
 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 lttng_create_session_uri
 {
        # Create session with default path
@@ -91,6 +85,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.023092 seconds and 4 git commands to generate.