Skip to content

Commit 66c99dd

Browse files
[PATCH] Fixes for some regressions (- WIP #82 -)
1 parent 01e170f commit 66c99dd

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

Makefile

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -253,19 +253,19 @@ purge: legacy-purge
253253
$(QUIET)$(ECHO) "$@: Done."
254254

255255
test-reports: .env
256-
$(QUIET)mkdir $(INST_OPTS) ./test-reports 2>$(ERROR_LOG_PATH) >$(ERROR_LOG_PATH) || true ;
257-
$(QUIET)$(BSMARK) ./test-reports 2>$(ERROR_LOG_PATH) >$(ERROR_LOG_PATH) || true ;
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 ;
258258
$(QUIET)$(ECHO) "$@: Done."
259259

260-
test-reqs: cc-test-reporter test-reports init
261-
$(QUIET)$(PYTHON) -m pip install $(PIP_COMMON_FLAGS) $(PIP_ENV_FLAGS) -r tests-requirements.txt 2>$(ERROR_LOG_PATH) || true
260+
test-reqs: .env init cc-test-reporter test-reports
261+
$(QUIET)$(PYTHON) -m pip install $(PIP_COMMON_FLAGS) $(PIP_ENV_FLAGS) -r test-requirements.txt 2>$(ERROR_LOG_PATH) || true
262262

263-
just-test: cleanup cc-test-reporter .env
264-
$(QUIET)$(COVERAGE) run -p --source=pythonrepo -m unittest discover --verbose --buffer -s ./tests -t $(dir $(abspath $(lastword $(MAKEFILE_LIST)))) || $(PYTHON) -m unittest discover --verbose --buffer -s ./tests -t ./ || DO_FAIL="exit 2" ;
263+
just-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" ;
265265
$(QUIET)$(WAIT) ;
266266
$(QUIET)$(DO_FAIL) ;
267267

268-
test: just-test
268+
test: test-reqs just-test
269269
$(QUIET)$(DO_FAIL) ;
270270
$(QUIET)$(COVERAGE) combine 2>$(ERROR_LOG_PATH) || : ;
271271
$(QUIET)$(COVERAGE) report -m --include=* 2>$(ERROR_LOG_PATH) || : ;
@@ -276,8 +276,8 @@ test-tox: cleanup
276276
$(QUIET)tox -v -- || tail -n 500 .tox/py*/log/py*.log 2>/dev/null
277277
$(QUIET)$(ECHO) "$@: Done."
278278

279-
test-pytest: cleanup MANIFEST.in cc-test-reporter 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=. || DO_FAIL="exit 2" ;
279+
test-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" ;
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

Comments
 (0)