BACKPORT: Tests: fix: test_relayd_working_directory fails as user
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 4 Feb 2020 00:51:08 +0000 (19:51 -0500)
committerJonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Tue, 26 May 2020 18:29:44 +0000 (14:29 -0400)
A formating issue introduced by 15da468cd causes the temporary
directory of the a test to be initialized incorrectly, causing it to
fail when it is not skipped (executed as a non-root user).

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Change-Id: Idd09f27fa2ce0f5991056ab52bc1718080122151

tests/regression/tools/working-directory/test_relayd_working_directory

index 91f2e5eea6f32a23c7e417584c654ab86967d28f..d6ce8e82627a7c8caf0f39f5c49c6590e688508c 100755 (executable)
@@ -180,7 +180,8 @@ function test_relayd_debug_permission()
 
                # Redirect the error output to a temporary file
 
-               ERROR_OUTPUT_DEST=$(mktemp) start_lttng_relayd_opt 1 "-b" "-v --working-dir $working_dir"
+               ERROR_OUTPUT_DEST=$(mktemp)
+               start_lttng_relayd_opt 1 "-b" "-v --working-dir $working_dir"
 
                pid=$(pgrep "$RELAYD_MATCH")
                ok $? "Found lttng-relayd"
This page took 0.027346 seconds and 5 git commands to generate.