tests: fix shellcheck warning in plugins/src.ctf.lttng-live/test_live
[babeltrace.git] / tests / plugins / src.ctf.lttng-live / test_live
index 891ce45ae858a7878d8e679043b040dc2317fb83..b06a72ef123d370081cc0ba3eb25cd9a39179815 100755 (executable)
@@ -139,8 +139,10 @@ get_cli_output_with_lttng_live_server() {
 
        cli_args=${cli_args_template//@PORT@/$port}
 
-       diag "Running CLI: 'babeltrace2 $cli_args'"
-       if ! "$BT_TESTS_BT2_BIN" $cli_args 1>"$cli_stdout_file" 2>"$cli_stderr_file"; then
+       # Split argument string by spaces into an array.
+       IFS=' ' read -ra cli_args <<< "$cli_args"
+
+       if ! bt_cli "$cli_stdout_file" "$cli_stderr_file" "${cli_args[@]}"; then
                # CLI failed: cancel everything else
                kill_lttng_live_server "$server_pid_file"
                wait
This page took 0.025376 seconds and 4 git commands to generate.