X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=tests%2Fregression%2Ftools%2Fsnapshots%2Fust_test;h=e2e84b5c343017177f890a782d8d941f00ec9233;hb=c125de8f5c0dc9ba3ada63e9317e468ffb9e335a;hp=8daaa045d125a5255f7e02ba36ff4c38488561e7;hpb=bd6661538d573c0798439f2933474f677a857728;p=lttng-tools.git diff --git a/tests/regression/tools/snapshots/ust_test b/tests/regression/tools/snapshots/ust_test index 8daaa045d..e2e84b5c3 100755 --- a/tests/regression/tools/snapshots/ust_test +++ b/tests/regression/tools/snapshots/ust_test @@ -18,7 +18,7 @@ APPS_PID= NUM_TESTS=105 -TRACE_PATH=$(mktemp -d) +TRACE_PATH=$(mktemp --tmpdir -d tmp.test_snapshots_ust_trace_path.XXXXXX) source $TESTDIR/utils/utils.sh @@ -36,7 +36,7 @@ NUM_TESTS=$(($NUM_TESTS + ($NR_SNAPSHOT * 3))) function start_test_app() { - local tmp_file=$(mktemp -u) + local tmp_file=$(mktemp --tmpdir -u "tmp.${FUNCNAME[0]}_tmp_file.XXXXXX") # Start application with a temporary file. $TESTAPP_BIN -i $NR_ITER -w $NR_USEC_WAIT --sync-after-first-event $tmp_file & @@ -479,6 +479,8 @@ plan_tests $NUM_TESTS print_test_banner "$TEST_DESC" +bail_out_if_no_babeltrace + start_lttng_sessiond tests=( test_ust_list_output test_ust_local_snapshot