Cleanup: use `modprobe --remove` rather than `rmmod`
[lttng-tools.git] / tests / regression / tools / clear / test_kernel
index 300a2bbc8cd076c7030b130064d6a6d33a5a81c7..01065748b898e192e0225be8b1477c602f067179 100755 (executable)
@@ -20,7 +20,7 @@ source $TESTDIR/utils/utils.sh
 function signal_cleanup ()
 {
        stop_lttng_sessiond
-       modprobe -r lttng-test
+       modprobe --remove lttng-test
        full_cleanup
 }
 
@@ -28,7 +28,7 @@ function clean_path ()
 {
        local trace_path=$1
        set -u
-       rm -rf $trace_path/*
+       rm -rf $trace_path
        set +u
 }
 
@@ -620,7 +620,7 @@ skip $isroot "Root access is needed. Skipping all kernel streaming tests." $NUM_
                clean_path $TRACE_PATH
        done
 
-       rmmod lttng-test
+       modprobe --remove lttng-test
        stop_lttng_sessiond
        stop_lttng_relayd
 
This page took 0.023567 seconds and 4 git commands to generate.