+ if [ -n "$name" ]; then
+ options+=(-n "$name")
+ fi
+
+ # Checking for any other optional arguments that should be passed to the lttng command
+ args=("$@")
+ if [ -n "${args[*]:3}" ] ; then
+ options+=("${args[@]:3}")
+ fi
+
+ # The trace_path is a positional argument and must always come last if it is defined
+ if [ -n "$trace_path" ] ; then
+ options+=("$trace_path")
+ fi
+
+ "$TESTDIR/../src/bin/lttng/$LTTNG_BIN" snapshot add-output "${options[@]}" >/dev/null 2>&1