X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;ds=sidebyside;f=tests%2Fregression%2Fkernel%2Ftest_rotation_destroy_flush;h=6e568afda769cae29dd40fb41d913e9470df367e;hb=eb2dca3bdbb5f9d1fe8dc4c5d83951fe99ea0b29;hp=538d09b01157ee5a236723fe377c9718cb81f7ae;hpb=9d16b343fb9e781fc8d8fa3c448a3f382306dd33;p=lttng-tools.git diff --git a/tests/regression/kernel/test_rotation_destroy_flush b/tests/regression/kernel/test_rotation_destroy_flush index 538d09b01..6e568afda 100755 --- a/tests/regression/kernel/test_rotation_destroy_flush +++ b/tests/regression/kernel/test_rotation_destroy_flush @@ -29,7 +29,7 @@ source $TESTDIR/utils/utils.sh function signal_cleanup() { diag "*** Exiting ***" - modprobe -r lttng-test + modprobe --remove lttng-test full_cleanup } @@ -96,7 +96,7 @@ function test_rotation_destroy_flush_single() rm -rf $TRACE_PATH - modprobe -r lttng-test + modprobe --remove lttng-test stop_lttng_sessiond } @@ -128,11 +128,12 @@ fi skip $isroot "Root access is needed. Skipping all tests." $NUM_TESTS || { + validate_lttng_modules_present trap signal_cleanup SIGTERM SIGINT while [ "$i" -lt "$TEST_COUNT" ]; do - TRACE_PATH=$(mktemp -d) + TRACE_PATH=$(mktemp -d -t tmp.test_kernel_rotation_destroy_flush.XXXXXX) # Execute test ${TESTS[$i]}