X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=tests%2Fregression%2Ftools%2Fsave-load%2Ftest_autoload;h=0fbfa49f1f346f4e84ac33f9205c21db9f6c7499;hp=35b5d7bd50629ef96a5a2bae4dafd25564e3e755;hb=33e557114a2ba28e26e220a833e8a449c78b8b65;hpb=ff86d8d0bd96d3660ad79aa6158fbeb9055652b2 diff --git a/tests/regression/tools/save-load/test_autoload b/tests/regression/tools/save-load/test_autoload index 35b5d7bd5..0fbfa49f1 100755 --- a/tests/regression/tools/save-load/test_autoload +++ b/tests/regression/tools/save-load/test_autoload @@ -1,28 +1,14 @@ #!/bin/bash # -# Copyright (C) - 2018 Anders Wallin +# Copyright (C) 2018 Anders Wallin # -# This library is free software; you can redistribute it and/or modify it under -# the terms of the GNU Lesser General Public License as published by the Free -# Software Foundation; version 2.1 of the License. -# -# This library is distributed in the hope that it will be useful, but WITHOUT -# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS -# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more -# details. -# -# You should have received a copy of the GNU Lesser General Public License -# along with this library; if not, write to the Free Software Foundation, Inc., -# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA +# SPDX-License-Identifier: LGPL-2.1-only TEST_DESC="Auto load session(s)" CURDIR=$(dirname $0)/ CONFIG_DIR="${CURDIR}/configuration" TESTDIR=$CURDIR/../../../ -SESSIOND_BIN="lttng-sessiond" -RELAYD_BIN="lttng-relayd" -LTTNG_BIN="lttng" export LTTNG_SESSION_CONFIG_XSD_PATH=$(readlink -m ${TESTDIR}../src/common/config/) DIR=$(readlink -f $TESTDIR) @@ -76,8 +62,8 @@ TESTS=( for fct_test in ${TESTS[@]}; do - export LTTNG_HOME=$(mktemp -d) - export LTTNG_DIR=$(mktemp -d) + export LTTNG_HOME=$(mktemp --tmpdir -d tmp.test_lttng_home_dir.XXXXXX) + export LTTNG_DIR=$(mktemp --tmpdir -d tmp.test_lttng_dir.XXXXXX) ${fct_test} rm -rf $LTTNG_DIR