From 14b7abda95cc015c65c9f344329c80aa90cdedbb Mon Sep 17 00:00:00 2001 From: Martine Lenders Date: Wed, 19 Oct 2022 13:58:19 +0200 Subject: [PATCH] build-system: add capability to execute scripts with custom executor --- makefiles/tests/tests.inc.mk | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/makefiles/tests/tests.inc.mk b/makefiles/tests/tests.inc.mk index c4416970de..fcfe348fa6 100644 --- a/makefiles/tests/tests.inc.mk +++ b/makefiles/tests/tests.inc.mk @@ -17,10 +17,14 @@ TESTS ?= $(foreach file,$(wildcard $(APPDIR)/tests/*[^~]),\ # this. In order to make local builds behave similar, add the term deps here. # See #11762. TEST_DEPS += $(TERMDEPS) +# these variables can be used to use e.g. pytest to execute the tests instead of +# executing them as a script +TEST_EXECUTOR ?= +TEST_EXECUTOR_FLAGS ?= test: $(TEST_DEPS) $(Q) for t in $(TESTS); do \ - $$t || exit 1; \ + $(TEST_EXECUTOR) $(TEST_EXECUTOR_FLAGS) $$t || exit 1; \ done test/available: