From 10dfa2a27daf87ee3c435180e20bcc29c081f8a7 Mon Sep 17 00:00:00 2001 From: Will Gauvin Date: Thu, 28 Jul 2022 09:11:57 +1000 Subject: [PATCH] AT3-206 resolve issue with pytest-forked * Make sure that tests run via make python-test are all run with '--forked' argument. * See https://github.com/pytest-dev/pytest-forked/issues/67 and https://github.com/pytest-dev/pytest/issues/9621 for details --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index a9c4979..ea82889 100644 --- a/Makefile +++ b/Makefile @@ -14,7 +14,7 @@ PYTHON_TEST_FILE = tests PYTHON_LINT_TARGET = src tests ## Paths containing python to be formatted and linted PYTHON_SWITCHES_FOR_PYLINT = --disable=W,C,R --ignored-modules="ska_pst_lmc_proto" DOCS_SOURCEDIR=./docs/src -PYTHON_VARS_AFTER_PYTEST = --cov-config=$(PWD)/.coveragerc +PYTHON_VARS_AFTER_PYTEST = --forked --cov-config=$(PWD)/.coveragerc K8S_CHART ?= test-parent K8S_CHARTS ?= $(K8S_CHART)