X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=tests%2Futils%2Futils.sh;fp=tests%2Futils%2Futils.sh;h=2680daae923e15b937f8263d203210efd44549c1;hp=c6d627cef40134efdefd7e3c0c6b916215adf3a4;hb=3c4c35827bdf49a2e148829672e6ff1a9c1b1bb8;hpb=e32a3d0f431b41123e001abcbce329da6532f903 diff --git a/tests/utils/utils.sh b/tests/utils/utils.sh index c6d627cef..2680daae9 100644 --- a/tests/utils/utils.sh +++ b/tests/utils/utils.sh @@ -1028,10 +1028,26 @@ function sigstop_lttng_consumerd_notap() function list_lttng_with_opts () { + local ret + local withtap=$1 + shift local opts=$1 _run_lttng_cmd "$OUTPUT_DEST" "$ERROR_OUTPUT_DEST" \ list $opts - ok $? "Lttng-tool list command with option $opts" + ret=$? + if [ $withtap -eq "1" ]; then + ok $ret "Lttng-tool list command with option $opts" + fi +} + +function list_lttng_ok () +{ + list_lttng_with_opts 1 "$@" +} + +function list_lttng_notap () +{ + list_lttng_with_opts 0 "$@" } function create_lttng_session_no_output ()