diff options
author | Philip Kuryloski <kuryloskip@vmware.com> | 2021-11-16 13:25:53 +0100 |
---|---|---|
committer | Philip Kuryloski <kuryloskip@vmware.com> | 2021-11-16 13:25:53 +0100 |
commit | 3b48ebabf7e029b20d8dc56077e87969d70ca8fb (patch) | |
tree | 7ff7384a020492b69c4a6748eabbf82acfcd597b | |
parent | e5a4907a60f7da479a349f6289eab1ebd42c00b4 (diff) | |
download | rabbitmq-server-git-cleanup-symlink-private-log-message.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.erl | 7 |
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), |