summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilip Kuryloski <kuryloskip@vmware.com>2021-11-16 13:25:53 +0100
committerPhilip Kuryloski <kuryloskip@vmware.com>2021-11-16 13:25:53 +0100
commit3b48ebabf7e029b20d8dc56077e87969d70ca8fb (patch)
tree7ff7384a020492b69c4a6748eabbf82acfcd597b
parente5a4907a60f7da479a349f6289eab1ebd42c00b4 (diff)
downloadrabbitmq-server-git-3b48ebabf7e029b20d8dc56077e87969d70ca8fb.tar.gz
Fixup the "Failed to symlink private_log directory." error in bazelcleanup-symlink-private-log-message
While it doesn't cause any tests to fail, it's confusing to see it in the logs
-rw-r--r--deps/rabbitmq_ct_helpers/src/rabbit_ct_helpers.erl7
1 files changed, 5 insertions, 2 deletions
diff --git a/deps/rabbitmq_ct_helpers/src/rabbit_ct_helpers.erl b/deps/rabbitmq_ct_helpers/src/rabbit_ct_helpers.erl
index 97e8b66017..12e7a158c8 100644
--- a/deps/rabbitmq_ct_helpers/src/rabbit_ct_helpers.erl
+++ b/deps/rabbitmq_ct_helpers/src/rabbit_ct_helpers.erl
@@ -607,8 +607,11 @@ get_selection(Config) ->
symlink_priv_dir(Config) ->
- case os:type() of
- {win32, _} ->
+ case {os:type(), ?config(rabbitmq_run_cmd, Config)} of
+ {{win32, _}, _} ->
+ Config;
+ {_, Cmd} when Cmd =/= undefined ->
+ %% skip if bazel
Config;
_ ->
SrcDir = ?config(current_srcdir, Config),