From 495870660ee0ce8e8ae377f5d4e43898e2df6a21 Mon Sep 17 00:00:00 2001 From: jbirddog <100367399+jbirddog@users.noreply.github.com> Date: Mon, 24 Jun 2024 08:01:08 -0400 Subject: [PATCH] Allow passing addition args, currently used in be-test* targets (#1787) --- Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 94a37a6b5..1f6c957e8 100644 --- a/Makefile +++ b/Makefile @@ -25,6 +25,7 @@ SPIFFWORKFLOW_BACKEND_ENV ?= local_development BACKEND_SQLITE_FILE ?= src/instance/db_$(SPIFFWORKFLOW_BACKEND_ENV).sqlite3 NODE_MODULES_DIR ?= spiffworkflow-frontend/node_modules JUST ?= +ARGS ?= YML_FILES := -f docker-compose.yml \ -f $(BACKEND_DEV_OVERLAY) \ @@ -88,10 +89,10 @@ be-sqlite: $(IN_BACKEND) sqlite3 $(BACKEND_SQLITE_FILE) be-tests: be-clear-log-file - $(IN_BACKEND) poetry run pytest tests/spiffworkflow_backend/$(JUST) + $(IN_BACKEND) poetry run pytest $(ARGS) tests/spiffworkflow_backend/$(JUST) be-tests-par: be-clear-log-file - $(IN_BACKEND) poetry run pytest -n auto -x --random-order tests/spiffworkflow_backend/$(JUST) + $(IN_BACKEND) poetry run pytest -n auto -x --random-order $(ARGS) tests/spiffworkflow_backend/$(JUST) fe-lint-fix: $(IN_FRONTEND) npm run lint:fix