Tests: PID_RELAYD is never used
[lttng-tools.git] / tests / regression / tools / regen-statedump / test_kernel
index 85afe76a18756782626c1cc50dee66af5cf403f9..be65472bae05212c6117a79245cb94a9dfe217a2 100755 (executable)
@@ -19,7 +19,6 @@ TEST_DESC="Regenerate the statedump - Kernel tracing"
 CURDIR=$(dirname $0)/
 TESTDIR=$CURDIR/../../..
 EVENT_NAME="lttng_test_filter_event"
-PID_RELAYD=0
 SESSION_NAME=""
 EVENT_NAME="lttng_statedump_start,lttng_statedump_end"
 
@@ -29,12 +28,6 @@ NUM_TESTS=11
 
 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 test_kernel_local ()
 {
        diag "Test kernel local with statedump regeneration"
@@ -64,6 +57,7 @@ fi
 
 skip $isroot "Root access is needed. Skipping all kernel streaming tests." $NUM_TESTS ||
 {
+       validate_lttng_modules_present
        start_lttng_sessiond
        modprobe lttng-test
 
This page took 0.02342 seconds and 4 git commands to generate.