projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Tests: use modprobe to test for the presence of lttng-modules
[lttng-tools.git]
/
tests
/
regression
/
tools
/
regen-statedump
/
test_kernel
diff --git
a/tests/regression/tools/regen-statedump/test_kernel
b/tests/regression/tools/regen-statedump/test_kernel
index 85afe76a18756782626c1cc50dee66af5cf403f9..50054eb074d48cfe5cb789d54ec4c3bed0082272 100755
(executable)
--- a/
tests/regression/tools/regen-statedump/test_kernel
+++ b/
tests/regression/tools/regen-statedump/test_kernel
@@
-29,12
+29,6
@@
NUM_TESTS=11
source $TESTDIR/utils/utils.sh
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"
function test_kernel_local ()
{
diag "Test kernel local with statedump regeneration"
@@
-64,6
+58,7
@@
fi
skip $isroot "Root access is needed. Skipping all kernel streaming tests." $NUM_TESTS ||
{
skip $isroot "Root access is needed. Skipping all kernel streaming tests." $NUM_TESTS ||
{
+ validate_lttng_modules_present
start_lttng_sessiond
modprobe lttng-test
start_lttng_sessiond
modprobe lttng-test
This page took
0.024936 seconds
and
4
git commands to generate.