Backport: create_lttng_session_uri from 308a89467c4dbfe218a9665bab82555dd88c07c9
[lttng-tools.git] / tests / utils / utils.sh
index af63824cefb901e391254306523e90385ad26186..e7147c36636e6c20ce8bdf292404c70834c84da2 100644 (file)
@@ -712,6 +712,15 @@ function create_lttng_session_no_output ()
        ok $? "Create session $sess_name in no-output mode"
 }
 
+function create_lttng_session_uri () {
+    local sess_name=$1
+    local uri=$2
+    local opts="${@:3}"
+
+    $TESTDIR/../src/bin/lttng/$LTTNG_BIN create $sess_name -U $uri $opts 1> $OUTPUT_DEST 2> $ERROR_OUTPUT_DEST
+    ok $? "Create session $sess_name with uri:$uri and opts: $opts"
+}
+
 function create_lttng_session ()
 {
        local withtap=$1
This page took 0.024245 seconds and 5 git commands to generate.