We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1c18399 commit d7043b9Copy full SHA for d7043b9
deps/rabbitmq_ct_helpers/src/rabbit_ct_helpers.erl
@@ -207,11 +207,12 @@ ensure_secondary_dist(Config) ->
207
undefined -> os:getenv("SECONDARY_DIST");
208
P -> P
209
end,
210
- %% @tod Hard fail if file doesn't exist.
+ %% Hard fail if the path is invalid.
211
case Path =/= false andalso filelib:is_dir(Path) of
212
- true -> set_config(Config, {secondary_dist, Path});
213
- false -> set_config(Config, {secondary_dist, false})
214
- end.
+ true -> ok;
+ false -> error(secondary_dist_path_invalid)
+ end,
215
+ set_config(Config, {secondary_dist, Path}).
216
217
ensure_secondary_umbrella(Config) ->
218
Path = case get_config(Config, secondary_umbrella) of
0 commit comments