From: Simon Marchi Date: Sat, 5 Oct 2019 05:37:25 +0000 (-0400) Subject: tests: test_output_path_ctf_non_lttng_trace_output small improvements X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=commitdiff_plain;h=e9b03bd9fe752f120d95e5bb209839ad08810c60 tests: test_output_path_ctf_non_lttng_trace_output small improvements - Give a name to temporary directories - Use bt_cli, so the executed command lines are printed Change-Id: Ife9cadbabeca86a58ac976dc61b7c4c8d25c6efb Signed-off-by: Simon Marchi Reviewed-on: https://review.lttng.org/c/babeltrace/+/2143 Tested-by: jenkins Reviewed-by: Philippe Proulx --- diff --git a/tests/cli/test_output_path_ctf_non_lttng_trace b/tests/cli/test_output_path_ctf_non_lttng_trace index a18644c5..f3208b79 100755 --- a/tests/cli/test_output_path_ctf_non_lttng_trace +++ b/tests/cli/test_output_path_ctf_non_lttng_trace @@ -39,8 +39,8 @@ source "$UTILSSH" plan_tests 3 -temp_input_dir=$(mktemp -d) -temp_output_dir=$(mktemp -d) +temp_input_dir=$(mktemp -t -d test_output_path_ctf_non_lttng_trace_input.XXXXXX) +temp_output_dir=$(mktemp -t -d test_output_path_ctf_non_lttng_trace_output.XXXXXX) mkdir -p "${temp_input_dir}/a/b/c" cp -a "${BT_CTF_TRACES_PATH}/intersection/3eventsintersect" "${temp_input_dir}/a/b/c" @@ -51,7 +51,7 @@ cp -a "${BT_CTF_TRACES_PATH}/intersection/3eventsintersectreverse" "${temp_input mkdir -p "${temp_input_dir}/d/e/f" cp -a "${BT_CTF_TRACES_PATH}/intersection/nointersect" "${temp_input_dir}/d/e/f" -"${BT_TESTS_BT2_BIN}" "${temp_input_dir}" -c sink.ctf.fs -p "path=\"${temp_output_dir}\"" +bt_cli "/dev/null" "/dev/null" "${temp_input_dir}" -c sink.ctf.fs -p "path=\"${temp_output_dir}\"" test -f "${temp_output_dir}/a/b/c/3eventsintersect/metadata" ok "$?" "3eventsintersect output trace exists"