X-Git-Url: https://git.efficios.com/?a=blobdiff_plain;f=tests%2Fcli%2Flist-plugins%2Ftest_list_plugins;h=595eb4db3db3b500ebc263955c0ca1c81dff5c33;hb=75e396f6b20bdf52c76a3c7312e7fb815ac1e5e9;hp=378a1b29ffb6d0d1c1c4e6264c0657afc911f883;hpb=4a879f40b565961f8165729c0b13fe91baed3973;p=babeltrace.git diff --git a/tests/cli/list-plugins/test_list_plugins b/tests/cli/list-plugins/test_list_plugins index 378a1b29..595eb4db 100755 --- a/tests/cli/list-plugins/test_list_plugins +++ b/tests/cli/list-plugins/test_list_plugins @@ -1,21 +1,11 @@ #!/bin/bash # -# Copyright (C) 2019 EfficiOS Inc. -# -# 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) 2019 EfficiOS Inc. # -# 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. -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" @@ -44,7 +34,7 @@ ok "$?" "exit code is 0" grep --after-context=11 '^this-is-a-plugin:$' "${stdout_file}" > "${grep_stdout_file}" ok "$?" "entry for this-is-a-plugin is present" -if [ "$BT_OS_TYPE" = "mingw" ]; then +if [ "$BT_TESTS_OS_TYPE" = "mingw" ]; then platform_plugin_dir=$(cygpath -m "${plugin_dir}") else platform_plugin_dir="${plugin_dir}"