tests: test_output_path_ctf_non_lttng_trace_output small improvements
authorSimon Marchi <simon.marchi@efficios.com>
Sat, 5 Oct 2019 05:37:25 +0000 (01:37 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Wed, 9 Oct 2019 18:14:29 +0000 (14:14 -0400)
- Give a name to temporary directories
- Use bt_cli, so the executed command lines are printed

Change-Id: Ife9cadbabeca86a58ac976dc61b7c4c8d25c6efb
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/2143
Tested-by: jenkins <jenkins@lttng.org>
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
tests/cli/test_output_path_ctf_non_lttng_trace

index a18644c5406ac384b1d851d619b0d31fe36815aa..f3208b79e36aaa4aa952198bfd11b919eb7b27ce 100755 (executable)
@@ -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"
This page took 0.024464 seconds and 4 git commands to generate.