Cleanup: use `modprobe --remove` rather than `rmmod`
[lttng-tools.git] / tests / utils / utils.sh
index 0b126a706d3a4da30cc1576875626b2224af09e1..b29fa5f2d8b65e78a9b2c2d466680786e4dc036b 100644 (file)
@@ -46,7 +46,7 @@ export LTTNG_SESSIOND_PATH="/bin/true"
 
 source $TESTDIR/utils/tap/tap.sh
 
-if [ -z $LTTNG_TEST_TEARDOWN_TIMEOUT ]; then
+if [ -z ${LTTNG_TEST_TEARDOWN_TIMEOUT+x} ]; then
        LTTNG_TEST_TEARDOWN_TIMEOUT=60
 fi
 
@@ -664,7 +664,7 @@ function stop_lttng_sessiond_opt()
 
                        if [ -n "$modules" ]; then
                                diag "Unloading all LTTng modules"
-                               modprobe -r "$modules"
+                               modprobe --remove "$modules"
                        fi
                fi
        fi
This page took 0.02333 seconds and 4 git commands to generate.