@@ -102,7 +102,7 @@ ifeq "$(COVERAGE)" ""
102102 # Only set COV_CORE_* variables when COVERAGE is configured
103103 ifneq "$(COVERAGE)" ""
104104 # COV_CORE_SOURCE = $(dir $(abspath $(lastword $(MAKEFILE_LIST))))/
105- COV_CORE_CONFIG = $(dir $(abspath $(lastword $(MAKEFILE_LIST))))/ .coveragerc
105+ COV_CORE_CONFIG = $(dir $(abspath $(firstword $(MAKEFILE_LIST)))).coveragerc
106106 COV_CORE_DATAFILE = .coverage
107107 endif
108108endif
@@ -253,15 +253,15 @@ purge: legacy-purge
253253 $(QUIET )$(ECHO ) " $@ : Done."
254254
255255test-reports : .env
256- $(QUIET ) mkdir $(INST_OPTS ) $(dir $(abspath $(lastword $(MAKEFILE_LIST ) ) ) ) test-reports 2> $(ERROR_LOG_PATH ) > $(ERROR_LOG_PATH ) || true ;
257- $(QUIET )$(BSMARK ) $(dir $(abspath $(lastword $(MAKEFILE_LIST ) ) ) ) test-reports 2> $(ERROR_LOG_PATH ) > $(ERROR_LOG_PATH ) || true ;
256+ $(QUIET ) mkdir $(INST_OPTS ) $(dir $(abspath $(firstword $(MAKEFILE_LIST ) ) ) ) test-reports 2> $(ERROR_LOG_PATH ) > $(ERROR_LOG_PATH ) || true ;
257+ $(QUIET )$(BSMARK ) $(dir $(abspath $(firstword $(MAKEFILE_LIST ) ) ) ) test-reports 2> $(ERROR_LOG_PATH ) > $(ERROR_LOG_PATH ) || true ;
258258 $(QUIET )$(ECHO ) " $@ : Done."
259259
260260test-reqs : .env init cc-test-reporter test-reports
261261 $(QUIET )$(PYTHON ) -m pip install $(PIP_COMMON_FLAGS ) $(PIP_ENV_FLAGS ) -r test-requirements.txt 2> $(ERROR_LOG_PATH ) || true
262262
263263just-test : cleanup
264- $(QUIET )$(COVERAGE ) run -p --source=pythonrepo -m unittest discover --verbose --buffer -s $(dir $(abspath $(lastword $(MAKEFILE_LIST ) ) ) ) tests -t $(dir $(abspath $(lastword $(MAKEFILE_LIST ) ) ) ) || $(PYTHON ) -m unittest discover --verbose --buffer -s $(dir $(abspath $(lastword $(MAKEFILE_LIST ) ) ) ) tests -t $(dir $(abspath $(lastword $(MAKEFILE_LIST ) ) ) ) || DO_FAIL=" exit 2" ;
264+ $(QUIET )$(COVERAGE ) run -p --source=pythonrepo -m unittest discover --verbose --buffer -s $(dir $(abspath $(firstword $(MAKEFILE_LIST ) ) ) ) tests -t $(dir $(abspath $(firstword $(MAKEFILE_LIST ) ) ) ) || $(PYTHON ) -m unittest discover --verbose --buffer -s $(dir $(abspath $(firstword $(MAKEFILE_LIST ) ) ) ) tests -t $(dir $(abspath $(firstword $(MAKEFILE_LIST ) ) ) ) || DO_FAIL=" exit 2" ;
265265 $(QUIET )$(WAIT ) ;
266266 $(QUIET )$(DO_FAIL ) ;
267267
@@ -277,7 +277,7 @@ test-tox: cleanup
277277 $(QUIET )$(ECHO ) " $@ : Done."
278278
279279test-pytest : cleanup MANIFEST.in test-reqs must_have_pytest test-reports
280- $(QUIET )$(PYTHON ) -m pytest --cache-clear --doctest-glob=pythonrepo/* .py --doctest-modules --cov=. --cov-append --cov-report=xml --junitxml=test-reports/junit.xml -v --rootdir=$(dir $(abspath $(lastword $(MAKEFILE_LIST ) ) ) ) || DO_FAIL=" exit 2" ;
280+ $(QUIET )$(PYTHON ) -m pytest --cache-clear --doctest-glob=pythonrepo/* .py --doctest-modules --cov=. --cov-append --cov-report=xml --junitxml=test-reports/junit.xml -v --rootdir=$(dir $(abspath $(firstword $(MAKEFILE_LIST ) ) ) ) || DO_FAIL=" exit 2" ;
281281 $(QUIET )$(CC_TOOL ) $(CC_TOOL_ARGS ) 2> $(ERROR_LOG_PATH ) || : ;
282282 $(QUIET )$(CA_TOOL ) $(CA_TOOL_ARGS ) || : ;
283283 $(QUIET )$(DS_TOOL ) $(DS_TOOL_ARGS ) || : ;
0 commit comments