X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=tests%2Futils%2Futils.sh;h=9ece4d35200af26bb476a667bc76df5e58b931d5;hp=9b93857c255569e7445d9d9f9a968d8eb6f1e0be;hb=2a1668643ca94195d5c3889d0337e19165805a42;hpb=030ccc250152b15afa188608e0952f79991a1ce3 diff --git a/tests/utils/utils.sh b/tests/utils/utils.sh index 9b93857c2..9ece4d352 100644 --- a/tests/utils/utils.sh +++ b/tests/utils/utils.sh @@ -752,8 +752,9 @@ function list_lttng_with_opts () function create_lttng_session_no_output () { local sess_name=$1 + local opts="${@:2}" - $TESTDIR/../src/bin/lttng/$LTTNG_BIN create $sess_name --no-output 1> $OUTPUT_DEST 2> $ERROR_OUTPUT_DEST + $TESTDIR/../src/bin/lttng/$LTTNG_BIN create $sess_name --no-output $opts 1> $OUTPUT_DEST 2> $ERROR_OUTPUT_DEST ok $? "Create session $sess_name in no-output mode" } @@ -1287,7 +1288,7 @@ function lttng_snapshot_record () local sess_name=$1 local trace_path=$2 - $TESTDIR/../src/bin/lttng/$LTTNG_BIN snapshot record -s $sess_name 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" }