tests: Move to kernel style SPDX license identifiers
[lttng-tools.git] / tests / regression / tools / working-directory / test_relayd_working_directory
index 8a261af213631662da28b1643e7c8b6eef305d77..6231ece0ed37bb40961f8c6a2c31e127cb916598 100755 (executable)
@@ -1,19 +1,8 @@
 #!/bin/bash
 #
-# Copyright (C) 2018 Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
+# Copyright (C) 2018 Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
 #
-# 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="Change working directory of process"
 
@@ -37,7 +26,7 @@ function test_relayd()
        local pid
        local cwd
 
-       working_dir=$(mktemp -d)
+       working_dir=$(realpath "$(mktemp -d)")
 
        diag "Test lttng-relayd normal mode change working directory"
 
@@ -72,7 +61,7 @@ function test_relayd_daemon()
        local cwd
        local pid
 
-       working_dir=$(mktemp -d)
+       working_dir=$(realpath "$(mktemp -d)")
 
        diag "Test lttng-relayd daemon mode change working directory"
 
@@ -116,7 +105,7 @@ function test_relayd_background()
        local cwd
        local pid
 
-       working_dir=$(mktemp -d)
+       working_dir=$(realpath "$(mktemp -d)")
 
        diag "Test lttng-relayd background mode change working directory"
 
@@ -161,7 +150,7 @@ function test_relayd_debug_permission()
        local cwd
        local pid
 
-       working_dir=$(mktemp -d)
+       working_dir=$(realpath "$(mktemp -d)")
 
        diag "Test lttng-relayd change working directory on non writable directory"
 
@@ -197,7 +186,7 @@ function test_relayd_failure()
        local output_dest
        local pid
 
-       working_dir="$(mktemp -d)"
+       working_dir=$(realpath "$(mktemp -d)")
        working_dir_imaginary="${working_dir}/imaginary_directory"
        output_dest=$(mktemp)
 
@@ -229,6 +218,7 @@ function test_relayd_env()
        local pid
 
        working_dir=$(mktemp -d)
+       working_dir=$(realpath "$(mktemp -d)")
 
        diag "Test lttng-relayd change working directory from env. variable"
 
@@ -254,8 +244,8 @@ function test_relayd_cmdline_overwrite_env()
        local cwd
        local pid
 
-       working_dir_env=$(mktemp -d)
-       working_dir_cmdline=$(mktemp -d)
+       working_dir_env=$(realpath "$(mktemp -d)")
+       working_dir_cmdline=$(realpath "$(mktemp -d)")
 
        diag "Test lttng-relayd change working directory command line overwrite env variable"
 
This page took 0.025825 seconds and 5 git commands to generate.