X-Git-Url: https://git.efficios.com/?a=blobdiff_plain;f=tests%2Fcli%2Ftest_trace_read;h=474015e08e5a2dccc246d9c339a616c5dfe373ae;hb=75e396f6b20bdf52c76a3c7312e7fb815ac1e5e9;hp=5dd9c3db54d42507baf222abc43fdeb1e15c56bd;hpb=644e036445497ef69ccf946f0700da20a5bae84f;p=babeltrace.git diff --git a/tests/cli/test_trace_read b/tests/cli/test_trace_read index 5dd9c3db..474015e0 100755 --- a/tests/cli/test_trace_read +++ b/tests/cli/test_trace_read @@ -1,23 +1,13 @@ #!/bin/bash # -# Copyright (C) 2013 Christian Babeux -# -# This program is free software; you can redistribute it and/or modify it -# under the terms of the GNU General Public License, version 2 only, as -# published by the Free Software Foundation. +# SPDX-License-Identifier: GPL-2.0-only # -# This program 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 General Public License for -# more details. +# Copyright (C) 2013 Christian Babeux # -# You should have received a copy of the GNU General Public License along with -# this program; if not, write to the Free Software Foundation, Inc., 51 -# Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. SH_TAP=1 -if [ "x${BT_TESTS_SRCDIR:-}" != "x" ]; then +if [ -n "${BT_TESTS_SRCDIR:-}" ]; then UTILSSH="$BT_TESTS_SRCDIR/utils/utils.sh" else UTILSSH="$(dirname "$0")/../utils/utils.sh" @@ -26,8 +16,8 @@ fi # shellcheck source=../utils/utils.sh source "$UTILSSH" -SUCCESS_TRACES=(${BT_CTF_TRACES_PATH}/succeed/*) -FAIL_TRACES=(${BT_CTF_TRACES_PATH}/fail/*) +SUCCESS_TRACES=("${BT_CTF_TRACES_PATH}/succeed/"*) +FAIL_TRACES=("${BT_CTF_TRACES_PATH}/fail/"*) NUM_TESTS=$((${#SUCCESS_TRACES[@]} + ${#FAIL_TRACES[@]}))