Skip to content

Commit 0411864

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. 2. We can skip Mnesia- or Khepri-specific tests if they are marked.
1 parent e480513 commit 0411864

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

deps/rabbitmq_cli/Makefile

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,12 @@ 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+
$(if $(filter khepri,$(RABBITMQ_METADATA_STORE)),,RABBITMQ_FEATURE_FLAGS="-khepri_db")
122+
$(gen_verbose) $(MIX_TEST) \
123+
$(if $(RABBITMQ_METADATA_STORE),--exclude $(filter-out $(RABBITMQ_METADATA_STORE),khepri mnesia),) \
124+
$(TEST_FILE); \
121125
RES=$$?; \
122126
$(MAKE) -C ../../ stop-node; \
123127
exit $$RES

0 commit comments

Comments
 (0)