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)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 4 Feb 2020 00:51:08 +0000 (19:51 -0500)
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 8856a921bee5386a686aaff338018d5645b301eb..0a5bad027bb8f0b995ad8b6451e49299423c1460 100755 (executable)
@@ -169,7 +169,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.026145 seconds and 4 git commands to generate.