Backport: create_lttng_session_uri from 308a89467c4dbfe218a9665bab82555dd88c07c9
authorJonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Thu, 28 Jun 2018 14:38:19 +0000 (10:38 -0400)
committerJonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Wed, 10 Apr 2019 20:20:10 +0000 (16:20 -0400)
Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
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.026723 seconds and 5 git commands to generate.