Skip to content

Commit f0da673

Browse files
committed
Fix
1 parent f553a57 commit f0da673

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

deps/rabbitmq_ct_helpers/src/rabbit_ct_broker_helpers.erl

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -628,7 +628,7 @@ write_config_file(Config, NodeConfig, _I) ->
628628

629629
do_start_rabbitmq_node(Config, NodeConfig, I) ->
630630
WithPlugins0 = rabbit_ct_helpers:get_config(Config,
631-
broker_with_plugins),
631+
broker_with_plugins), %% @todo This is probably not used.
632632
WithPlugins = case is_list(WithPlugins0) of
633633
true -> lists:nth(I + 1, WithPlugins0);
634634
false -> WithPlugins0
@@ -693,12 +693,7 @@ do_start_rabbitmq_node(Config, NodeConfig, I) ->
693693
true ->
694694
["LEAVE_PLUGINS_DISABLED=1" | ExtraArgs1];
695695
_ ->
696-
case filename:basename(SrcDir) of
697-
"rabbit" ->
698-
["LEAVE_PLUGINS_DISABLED=1" | ExtraArgs1];
699-
SrcPlugin ->
700-
[{"RABBITMQ_ENABLED_PLUGINS=~ts", [SrcPlugin]} | ExtraArgs1]
701-
end
696+
ExtraArgs1
702697
end,
703698
KeepPidFile = rabbit_ct_helpers:get_config(
704699
Config, keep_pid_file_on_exit),
@@ -745,11 +740,16 @@ do_start_rabbitmq_node(Config, NodeConfig, I) ->
745740
case UseSecondaryDist of
746741
true ->
747742
SecondaryDist = ?config(secondary_dist, Config),
743+
SecondaryEnabledPlugin = case filename:basename(SrcDir) of
744+
"rabbit" -> "";
745+
SrcPlugin -> SrcPlugin
746+
end,
748747
[{"DIST_DIR=~ts/plugins", [SecondaryDist]},
749748
{"CLI_SCRIPTS_DIR=~ts/sbin", [SecondaryDist]},
750749
{"CLI_ESCRIPTS_DIR=~ts/escript", [SecondaryDist]},
751750
{"RABBITMQ_SCRIPTS_DIR=~ts/sbin", [SecondaryDist]},
752-
{"RABBITMQ_SERVER=~ts/sbin/rabbitmq-server", [SecondaryDist]}
751+
{"RABBITMQ_SERVER=~ts/sbin/rabbitmq-server", [SecondaryDist]},
752+
{"RABBITMQ_ENABLED_PLUGINS=~ts", [SecondaryEnabledPlugin]}
753753
| ExtraArgs4];
754754
false ->
755755
ExtraArgs4

0 commit comments

Comments
 (0)