From 73f9569a7739e2e14d8ce461de11f7cabfd421fd Mon Sep 17 00:00:00 2001 From: Diana Parra Corbacho Date: Mon, 25 Nov 2024 08:58:14 +0100 Subject: [PATCH] Tests: use node in path for SSL certificate generation Avoids parallel creating on the same directory by different shards --- deps/rabbitmq_ct_helpers/src/rabbit_ct_helpers.erl | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/deps/rabbitmq_ct_helpers/src/rabbit_ct_helpers.erl b/deps/rabbitmq_ct_helpers/src/rabbit_ct_helpers.erl index 00b3fa203ad..3a0a9f011b9 100644 --- a/deps/rabbitmq_ct_helpers/src/rabbit_ct_helpers.erl +++ b/deps/rabbitmq_ct_helpers/src/rabbit_ct_helpers.erl @@ -597,11 +597,10 @@ ensure_rabbitmq_queues_cmd(Config) -> ensure_ssl_certs(Config) -> SrcDir = ?config(rabbitmq_ct_helpers_srcdir, Config), - Group = proplists:get_value(name, - ?config(tc_group_properties, Config)), + Node = node(), CertsMakeDir = filename:join([SrcDir, "tools", "tls-certs"]), PrivDir = ?config(priv_dir, Config), - CertsDir = filename:join([PrivDir, Group, "certs"]), + CertsDir = filename:join([PrivDir, Node, "certs"]), _ = filelib:ensure_dir(CertsDir), _ = file:make_dir(CertsDir), CertsPwd = proplists:get_value(rmq_certspwd, Config, ?SSL_CERT_PASSWORD),