Tests: utils.sh: pass arbitrary arguments to start_lttng_sessiond*
authorJonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Tue, 15 Dec 2020 19:03:15 +0000 (14:03 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Mon, 22 Mar 2021 19:15:10 +0000 (15:15 -0400)
Allows for easier arguments passing to lttng-sessiond. This is useful
both for debugging manually and passing specific flag as needed in
testing. Passing  "--event-notifier-error-number-of-bucket=X" or "-vvv"
for examples.

Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Change-Id: I36bd6eaf1c4fc84c3a1e8cfe70a37a46e7130c75

tests/utils/utils.sh

index 7e8100f005e8dc35757ab819c1f229e3267b78cc..15d7e8b5639c75fdaea1fae4772659efde6d7d35 100644 (file)
@@ -565,6 +565,9 @@ function start_lttng_sessiond_opt()
        local withtap=$1
        local load_path=$2
 
+       # The rest of the arguments will be passed directly to lttng-sessiond.
+       shift 2
+
        local env_vars=""
        local consumerd=""
 
@@ -609,10 +612,10 @@ function start_lttng_sessiond_opt()
                # Have a load path ?
                if [ -n "$load_path" ]; then
                        # shellcheck disable=SC2086
-                       env $env_vars --load "$load_path" --background "$consumerd"
+                       env $env_vars --load "$load_path" --background "$consumerd" "$@"
                else
                        # shellcheck disable=SC2086
-                       env $env_vars --background "$consumerd"
+                       env $env_vars --background "$consumerd" "$@"
                fi
                #$DIR/../src/bin/lttng-sessiond/$SESSIOND_BIN --background --consumerd32-path="$DIR/../src/bin/lttng-consumerd/lttng-consumerd" --consumerd64-path="$DIR/../src/bin/lttng-consumerd/lttng-consumerd" --verbose-consumer >>/tmp/sessiond.log 2>&1
                status=$?
This page took 0.02824 seconds and 4 git commands to generate.