From 6764754c78a78c7d579eb143c5e2da7ec8574bb6 Mon Sep 17 00:00:00 2001 From: Mikhail Uvarov Date: Thu, 12 Dec 2024 12:58:11 +0100 Subject: [PATCH] Parse TEST_HOSTS='' correctly It got parsed into [''] --- test/common/distributed_helper.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/common/distributed_helper.erl b/test/common/distributed_helper.erl index 9ace65deb7..3edcd4ab13 100644 --- a/test/common/distributed_helper.erl +++ b/test/common/distributed_helper.erl @@ -231,7 +231,7 @@ get_node_keys() -> [NodeKey || {NodeKey, _Opts} <- ct:get_config(hosts)]; EnvValue -> %% EnvValue examples are "mim" or "mim mim2" BinHosts = binary:split(iolist_to_binary(EnvValue), <<" ">>, [global]), - [binary_to_atom(Node, utf8) || Node <- BinHosts] + [binary_to_atom(Node, utf8) || Node <- BinHosts, Node =/= <<>>] end. validate_node(NodeKey) ->