X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=tests%2Fregression%2Fust%2Frotation-destroy-flush%2Ftest_rotation_destroy_flush;h=8ef4f0d8cd8b7c95288abdfdd3743793190e004d;hb=HEAD;hp=3e1750d0691022837ea90740afa5e2c3bdf04544;hpb=6c4a91d639747f260ab46decebc50998ef063712;p=lttng-tools.git diff --git a/tests/regression/ust/rotation-destroy-flush/test_rotation_destroy_flush b/tests/regression/ust/rotation-destroy-flush/test_rotation_destroy_flush index 3e1750d06..64161768f 100755 --- a/tests/regression/ust/rotation-destroy-flush/test_rotation_destroy_flush +++ b/tests/regression/ust/rotation-destroy-flush/test_rotation_destroy_flush @@ -1,20 +1,10 @@ #!/bin/bash # -# Copyright (C) - 2015 Jonathan Rajotte -# Copyright (C) - 2016 Mathieu Desnoyers +# Copyright (C) 2015 Jonathan Rajotte +# Copyright (C) 2016 Mathieu Desnoyers # -# 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="UST - Rotation destroy flush" CURDIR=$(dirname $0)/ @@ -33,11 +23,11 @@ SIZE_LIMIT=$PAGE_SIZE NR_ITER=10 NUM_TESTS=$((15*$NR_ITER)) -# Ensure the daemons invoke abort on error. -export LTTNG_ABORT_ON_ERROR=1 - source $TESTDIR/utils/utils.sh +# Ensure the daemons invoke abort on error. +check_skip_kernel_test || export LTTNG_ABORT_ON_ERROR=1 + # MUST set TESTDIR before calling those functions function run_app() { @@ -140,7 +130,7 @@ while [ "$i" -lt "$TEST_COUNT" ]; do trap signal_cleanup SIGTERM SIGINT - TRACE_PATH=$(mktemp -d) + TRACE_PATH=$(mktemp -d -t tmp.test_rotation_destroy_flush.XXXXXX) # Execute test ${TESTS[$i]}