X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=tests%2Futils%2Futils.sh;h=ea40fce9b5cd9131ed68e3c7de4fdd2cda9eaa3f;hb=c5e66755fab6ca716d6059f70c6440daa05ffb88;hp=d03825e66f562f93ee100652c27b100add4c46b2;hpb=4e4aceb7f943c0017786c6a8ef83e7a3d86c334f;p=lttng-tools.git diff --git a/tests/utils/utils.sh b/tests/utils/utils.sh index d03825e66..ea40fce9b 100644 --- a/tests/utils/utils.sh +++ b/tests/utils/utils.sh @@ -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 @@ -1420,7 +1420,7 @@ function lttng_snapshot_record () local sess_name=$1 local trace_path=$2 - $TESTDIR/../src/bin/lttng/$LTTNG_BIN snapshot record -s $sess_name $trace_path 1> $OUTPUT_DEST 2> $ERROR_OUTPUT_DEST + $TESTDIR/../src/bin/lttng/$LTTNG_BIN snapshot record -s "$sess_name" "$trace_path" 1> $OUTPUT_DEST 2> $ERROR_OUTPUT_DEST ok $? "Snapshot recorded" } @@ -1844,7 +1844,7 @@ function rotate_session_fail () function destructive_tests_enabled () { - if [ ${LTTNG_ENABLE_DESTRUCTIVE_TESTS} = "will-break-my-system" ]; then + if [ "$LTTNG_ENABLE_DESTRUCTIVE_TESTS" = "will-break-my-system" ]; then return 0 else return 1