X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=tests%2Futils%2Futils.sh;h=3ad9abe33db4ade3f20f03ebe3fffd68d2f9cac5;hb=032a3d09c1834efc9e4112cce5f5d58082db08ba;hp=8e6563d0672098e7c6d2f467bd26e4460a40b636;hpb=60ef7bf796f47dc526c44656724f1994b1745e89;p=lttng-tools.git diff --git a/tests/utils/utils.sh b/tests/utils/utils.sh index 8e6563d06..3ad9abe33 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 @@ -1427,8 +1427,9 @@ function lttng_snapshot_del_output_fail () 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" } @@ -1977,7 +1978,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