Skip to content

Commit 7a80eff

Browse files
committed
wip
1 parent aab0c4b commit 7a80eff

File tree

1 file changed

+14
-19
lines changed

1 file changed

+14
-19
lines changed

deps/rabbitmq_ct_helpers/src/rabbit_ct_broker_helpers.erl

Lines changed: 14 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -750,6 +750,17 @@ do_start_rabbitmq_node(Config, NodeConfig, I) ->
750750
false -> ExtraArgs3;
751751
_ -> ["NOBUILD=1" | ExtraArgs3]
752752
end,
753+
%% TODO: When we start to do mixed-version testing against 4.1.x as the
754+
%% secondary umbrella, we will need to stop setting
755+
%% `$RABBITMQ_FEATURE_FLAGS'.
756+
MetadataStore = rabbit_ct_helpers:get_config(Config, metadata_store),
757+
SecFeatureFlags0 = case MetadataStore of
758+
mnesia -> ?REQUIRED_FEATURE_FLAGS;
759+
khepri -> [khepri_db | ?REQUIRED_FEATURE_FLAGS]
760+
end,
761+
SecFeatureFlags = string:join(
762+
[atom_to_list(F) || F <- SecFeatureFlags0],
763+
","),
753764
ExtraArgs = case UseSecondaryUmbrella of
754765
true ->
755766
DepsDir = ?config(erlang_mk_depsdir, Config),
@@ -779,7 +790,8 @@ do_start_rabbitmq_node(Config, NodeConfig, I) ->
779790
{"RABBITMQ_SCRIPTS_DIR=~ts", [SecScriptsDir]},
780791
{"RABBITMQ_SERVER=~ts/rabbitmq-server", [SecScriptsDir]},
781792
{"RABBITMQCTL=~ts/rabbitmqctl", [SecScriptsDir]},
782-
{"RABBITMQ_PLUGINS=~ts/rabbitmq-plugins", [SecScriptsDir]}
793+
{"RABBITMQ_PLUGINS=~ts/rabbitmq-plugins", [SecScriptsDir]},
794+
{"RABBITMQ_FEATURE_FLAGS=~ts", [SecFeatureFlags]}
783795
| ExtraArgs4];
784796
false ->
785797
case UseSecondaryDist of
@@ -795,30 +807,13 @@ do_start_rabbitmq_node(Config, NodeConfig, I) ->
795807
{_, undefined, SrcPlugin} -> SrcPlugin;
796808
{_, SecondaryEnabledPlugins0, _} -> SecondaryEnabledPlugins0
797809
end,
798-
%% TODO: When we start to do mixed-version
799-
%% testing against 4.1.x as the secondary
800-
%% umbrella, we will need to stop setting
801-
%% `$RABBITMQ_FEATURE_FLAGS'.
802-
MetadataStore = rabbit_ct_helpers:get_config(
803-
Config, metadata_store),
804-
FeatureFlags = case MetadataStore of
805-
mnesia ->
806-
?REQUIRED_FEATURE_FLAGS;
807-
khepri ->
808-
[khepri_db |
809-
?REQUIRED_FEATURE_FLAGS]
810-
end,
811-
FeatureFlags1 = string:join(
812-
[atom_to_list(F) ||
813-
F <- FeatureFlags],
814-
","),
815810
[{"DIST_DIR=~ts/plugins", [SecondaryDist]},
816811
{"CLI_SCRIPTS_DIR=~ts/sbin", [SecondaryDist]},
817812
{"CLI_ESCRIPTS_DIR=~ts/escript", [SecondaryDist]},
818813
{"RABBITMQ_SCRIPTS_DIR=~ts/sbin", [SecondaryDist]},
819814
{"RABBITMQ_SERVER=~ts/sbin/rabbitmq-server", [SecondaryDist]},
820815
{"RABBITMQ_ENABLED_PLUGINS=~ts", [SecondaryEnabledPlugins]},
821-
{"RABBITMQ_FEATURE_FLAGS=~ts", [FeatureFlags1]}
816+
{"RABBITMQ_FEATURE_FLAGS=~ts", [SecFeatureFlags]}
822817
| ExtraArgs4];
823818
false ->
824819
ExtraArgs4

0 commit comments

Comments
 (0)