Skip to content

Commit

Permalink
Tests: fix: test_relayd_working_directory fails as user
Browse files Browse the repository at this point in the history
A formating issue introduced by 15da468 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 <[email protected]>
Change-Id: Idd09f27fa2ce0f5991056ab52bc1718080122151
  • Loading branch information
jgalar committed Feb 4, 2020
1 parent 5151d41 commit e7b7a0e
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit e7b7a0e

Please sign in to comment.