Skip to content

Commit 1f74193

Browse files
committed
rabbitmq_cli: Honor $RABBITMQ_METADATA_STORE when starting test node
[Why] Two reasons: 1. ~~We need to set the correct feature flags on the test node we have to start.~~ In 4.0.x, we don't set `$RABBITMQ_FEATURE_FLAGS` because it has no support for +/-feature_flag. 2. We can skip Mnesia- or Khepri-specific tests if they are marked. (cherry picked from commit 0411864)
1 parent a703c42 commit 1f74193

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

deps/rabbitmq_cli/Makefile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,11 @@ rel:: $(ESCRIPTS)
116116

117117
tests:: $(ESCRIPTS)
118118
$(verbose) $(MAKE) -C ../../ install-cli
119-
$(verbose) $(MAKE) -C ../../ start-background-broker PLUGINS="rabbit rabbitmq_federation rabbitmq_stomp rabbitmq_stream_management amqp_client"
120-
$(gen_verbose) $(MIX_TEST) $(TEST_FILE); \
119+
$(verbose) $(MAKE) -C ../../ start-background-broker \
120+
PLUGINS="rabbit rabbitmq_federation rabbitmq_stomp rabbitmq_stream_management amqp_client"
121+
$(gen_verbose) $(MIX_TEST) \
122+
$(if $(RABBITMQ_METADATA_STORE),--exclude $(filter-out $(RABBITMQ_METADATA_STORE),khepri mnesia),) \
123+
$(TEST_FILE); \
121124
RES=$$?; \
122125
$(MAKE) -C ../../ stop-node; \
123126
exit $$RES

0 commit comments

Comments
 (0)