projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Tests: introduce WaitTraceTestApplicationGroup
[lttng-tools.git]
/
tests
/
regression
/
tools
/
working-directory
/
test_relayd_working_directory
diff --git
a/tests/regression/tools/working-directory/test_relayd_working_directory
b/tests/regression/tools/working-directory/test_relayd_working_directory
index c7e784cca2feaedc20c2d92049d0655fe7db2517..c196a059ec51830bf1f718540327a16c4ae458a6 100755
(executable)
--- a/
tests/regression/tools/working-directory/test_relayd_working_directory
+++ b/
tests/regression/tools/working-directory/test_relayd_working_directory
@@
-22,7
+22,7
@@
print_test_banner "$TEST_DESC"
function test_relayd()
{
local relayd_bin_path="$DIR/../src/bin/lttng-relayd/$RELAYD_BIN"
function test_relayd()
{
local relayd_bin_path="$DIR/../src/bin/lttng-relayd/$RELAYD_BIN"
- local working_dir=$(realpath "$(mktemp -
-tmpdir -d
"tmp.${FUNCNAME[0]}_working_dir.XXXXXX")")
+ local working_dir=$(realpath "$(mktemp -
d -t
"tmp.${FUNCNAME[0]}_working_dir.XXXXXX")")
local pid
local cwd
local pid
local cwd
@@
-58,7
+58,7
@@
function test_relayd_daemon()
{
local cwd
local pid
{
local cwd
local pid
- local working_dir=$(realpath "$(mktemp -
-tmpdir -d
"tmp.${FUNCNAME[0]}_working_dir.XXXXXX")")
+ local working_dir=$(realpath "$(mktemp -
d -t
"tmp.${FUNCNAME[0]}_working_dir.XXXXXX")")
diag "Test lttng-relayd daemon mode change working directory"
diag "Test lttng-relayd daemon mode change working directory"
@@
-100,7
+100,7
@@
function test_relayd_background()
{
local cwd
local pid
{
local cwd
local pid
- local working_dir=$(realpath "$(mktemp -
-tmpdir -d
"tmp.${FUNCNAME[0]}_working_dir.XXXXXX")")
+ local working_dir=$(realpath "$(mktemp -
d -t
"tmp.${FUNCNAME[0]}_working_dir.XXXXXX")")
diag "Test lttng-relayd background mode change working directory"
diag "Test lttng-relayd background mode change working directory"
@@
-155,14
+155,14
@@
function test_relayd_debug_permission()
local output_pattern='Working directory \".*\" is not writable'
local cwd
local pid
local output_pattern='Working directory \".*\" is not writable'
local cwd
local pid
- local working_dir=$(realpath "$(mktemp -
-tmpdir -d
"tmp.${FUNCNAME[0]}_working_dir.XXXXXX")")
+ local working_dir=$(realpath "$(mktemp -
d -t
"tmp.${FUNCNAME[0]}_working_dir.XXXXXX")")
# Removing write access to working dir
okx chmod -w "$working_dir"
# Redirect the error output to a temporary file
# Removing write access to working dir
okx chmod -w "$working_dir"
# Redirect the error output to a temporary file
- ERROR_OUTPUT_DEST=$(mktemp -
-tmpdir
"tmp.${FUNCNAME[0]}_error_output.XXXXXX")
+ ERROR_OUTPUT_DEST=$(mktemp -
t
"tmp.${FUNCNAME[0]}_error_output.XXXXXX")
start_lttng_relayd_opt 1 "-b" "-v --working-dir $working_dir"
pid=$(lttng_pgrep "$RELAYD_MATCH")
start_lttng_relayd_opt 1 "-b" "-v --working-dir $working_dir"
pid=$(lttng_pgrep "$RELAYD_MATCH")
@@
-185,8
+185,8
@@
function test_relayd_failure()
{
local output_pattern='Failed to change working directory to'
local relayd_bin_path="$DIR/../src/bin/lttng-relayd/$RELAYD_BIN"
{
local output_pattern='Failed to change working directory to'
local relayd_bin_path="$DIR/../src/bin/lttng-relayd/$RELAYD_BIN"
- local working_dir=$(realpath "$(mktemp -
-tmpdir -d
"tmp.${FUNCNAME[0]}_working_dir.XXXXXX")")
- local output_dest=$(mktemp -
-tmpdir
"tmp.${FUNCNAME[0]}_working_dir.XXXXXX")
+ local working_dir=$(realpath "$(mktemp -
d -t
"tmp.${FUNCNAME[0]}_working_dir.XXXXXX")")
+ local output_dest=$(mktemp -
t
"tmp.${FUNCNAME[0]}_working_dir.XXXXXX")
local working_dir_imaginary
local pid
local working_dir_imaginary
local pid
@@
-218,7
+218,7
@@
function test_relayd_env()
{
local cwd
local pid
{
local cwd
local pid
- local working_dir=$(realpath "$(mktemp -
-tmpdir -d
"tmp.${FUNCNAME[0]}_working_dir.XXXXXX")")
+ local working_dir=$(realpath "$(mktemp -
d -t
"tmp.${FUNCNAME[0]}_working_dir.XXXXXX")")
diag "Test lttng-relayd change working directory from env. variable"
diag "Test lttng-relayd change working directory from env. variable"
@@
-241,8
+241,8
@@
function test_relayd_cmdline_overwrite_env()
{
local cwd
local pid
{
local cwd
local pid
- local working_dir_env=$(realpath "$(mktemp -
-tmpdir -d
"tmp.${FUNCNAME[0]}_working_dir_even.XXXXXX")")
- local working_dir_cmdline=$(realpath "$(mktemp -
-tmpdir -d
"tmp.${FUNCNAME[0]}_working_dir_cmdline.XXXXXX")")
+ local working_dir_env=$(realpath "$(mktemp -
d -t
"tmp.${FUNCNAME[0]}_working_dir_even.XXXXXX")")
+ local working_dir_cmdline=$(realpath "$(mktemp -
d -t
"tmp.${FUNCNAME[0]}_working_dir_cmdline.XXXXXX")")
diag "Test lttng-relayd change working directory command line overwrite env variable"
diag "Test lttng-relayd change working directory command line overwrite env variable"
This page took
0.026622 seconds
and
4
git commands to generate.