X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=tests%2Fplugins%2Fsrc.ctf.lttng-live%2Ftest_live;h=b06a72ef123d370081cc0ba3eb25cd9a39179815;hb=db4cb7f1eaa5ed259eb5b99b902f2495b3e6ab4b;hp=891ce45ae858a7878d8e679043b040dc2317fb83;hpb=90a8a0f23a364a3e1e3b7702c57b9c22473500a3;p=babeltrace.git diff --git a/tests/plugins/src.ctf.lttng-live/test_live b/tests/plugins/src.ctf.lttng-live/test_live index 891ce45a..b06a72ef 100755 --- a/tests/plugins/src.ctf.lttng-live/test_live +++ b/tests/plugins/src.ctf.lttng-live/test_live @@ -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