Move to kernel style SPDX license identifiers
[babeltrace.git] / tests / plugins / src.ctf.fs / query / test_query_metadata_info
index e52e7fa072d96a383f0f8952b2b9f2fbe153bc7b..9c2e4d0afd9dcea49229eda0e3cd2a65d6dbdbed 100755 (executable)
@@ -1,21 +1,10 @@
 #!/bin/bash
 #
+# SPDX-License-Identifier: GPL-2.0-only
+#
 # Copyright (C) 2019 Simon Marchi <simon.marchi@efficios.com>
 # Copyright (C) 2019 Francis Deslauriers <francis.deslauriers@efficios.com>
 #
-# This program is free software; you can redistribute it and/or
-# modify it under the terms of the GNU General Public License
-# as published by the Free Software Foundation; only version 2
-# of the License.
-#
-# 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.
-#
-# 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., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 
 SH_TAP=1
 
@@ -29,7 +18,6 @@ fi
 source "$UTILSSH"
 
 this_dir_relative="plugins/src.ctf.fs/query"
-this_dir_build="$BT_TESTS_BUILDDIR/$this_dir_relative"
 succeed_trace_dir="$BT_CTF_TRACES_PATH/succeed"
 expect_dir="$BT_TESTS_DATADIR/$this_dir_relative"
 
@@ -38,10 +26,13 @@ test_query_metadata_info() {
        local ret=0
        local trace_path="$succeed_trace_dir/$name"
        local expected_stdout="$expect_dir/metadata-info-$name.expect"
-       local temp_stdout_output_file="$(mktemp -t actual_stdout.XXXXXX)"
-       local temp_stderr_output_file="$(mktemp -t actual_stderr.XXXXXX)"
+       local temp_stdout_output_file
+       local temp_stderr_output_file
        local query=("query" "src.ctf.fs" "metadata-info" "--params" "path=\"$trace_path\"")
 
+       temp_stdout_output_file="$(mktemp -t actual_stdout.XXXXXX)"
+       temp_stderr_output_file="$(mktemp -t actual_stderr.XXXXXX)"
+
        bt_cli "$temp_stdout_output_file" "$temp_stderr_output_file" \
                "${query[@]}"
 
This page took 0.023163 seconds and 4 git commands to generate.