Skip to content

Commit ef693a8

Browse files
committed
refactor
1 parent be63094 commit ef693a8

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

tests/performance2/Makefile

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,15 +108,17 @@ test-deployment: _check_venv_active ## runs deployment test on deploy, optionall
108108
@$(call create_locust_config)
109109
@printf "$(YELLOW)Starting Locust...$(NC)\n"
110110
@export $$(cat $(AUTH_CREDS_FILE) | xargs) && \
111-
locust --config $(LOCUST_CONFIG_FILE) $(if $(endpoint),--endpoint $(endpoint),--endpoint $(DEFAULT_ENDPOINT))
111+
locust --config $(LOCUST_CONFIG_FILE) \
112+
$(if $(endpoint),--endpoint $(endpoint),--endpoint $(DEFAULT_ENDPOINT))
112113

113114
test-deployment-ci: _check_venv_active ## runs deployment test on CI, optionally pass endpoint=path to test specific endpoint
114115
@$(call prompt_for_credentials)
115116
@$(call create_locust_config)
116117
@printf "$(YELLOW)Starting Locust headless...$(NC)\n"
117118
@export $$(cat $(AUTH_CREDS_FILE) | xargs) && \
118119
locust --config $(LOCUST_CONFIG_FILE) \
119-
--headless $(if $(endpoint),--endpoint $(endpoint),--endpoint $(DEFAULT_ENDPOINT))
120+
--headless \
121+
$(if $(endpoint),--endpoint $(endpoint),--endpoint $(DEFAULT_ENDPOINT))
120122

121123
test-deployment-with-grafana: _check_venv_active grafana-dashboards-up ## runs deployment test with Grafana integration, optionally pass endpoint=path to test specific endpoint
122124
@$(call prompt_for_credentials)
@@ -130,7 +132,8 @@ test-deployment-with-grafana: _check_venv_active grafana-dashboards-up ## runs d
130132
--pguser $(PG_USER) \
131133
--pgpassword=$(PG_PASSWORD) \
132134
--headless \
133-
--timescale $(if $(endpoint),--endpoint $(endpoint),--endpoint $(DEFAULT_ENDPOINT))
135+
--timescale \
136+
$(if $(endpoint),--endpoint $(endpoint),--endpoint $(DEFAULT_ENDPOINT))
134137

135138

136139

0 commit comments

Comments
 (0)