Fix: tests: app unregistering is not guaranteed by app lifetime
[lttng-tools.git] / tests / utils / utils.sh
index 7f0140b424b2d1dec5857ba2f98f46a6f1b17b16..1e7d88b76c6a74aa373793003a1b56aca42642ab 100644 (file)
@@ -1006,9 +1006,25 @@ function sigstop_lttng_consumerd_notap()
 
 function list_lttng_with_opts ()
 {
+       local ret
+       local withtap=$1
+       shift
        local opts=$1
        $TESTDIR/../src/bin/lttng/$LTTNG_BIN list $opts 1> $OUTPUT_DEST 2> $ERROR_OUTPUT_DEST
-       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 ()
This page took 0.023285 seconds and 4 git commands to generate.