The mypy module names of the test tree derive from the full path, anchored by the top-level test/__init__.py, but a file below a path component that is not a valid identifier - the dashes in jw-pkg - falls back to the bare file name, so two same-named test.py drivers collide (the duplicate module error that drove the runme.py and main.py renames). Rename the directory a sane Python name - jw_pkg, that's the better fix. Then name the driver test.py like all the others for consistency. Signed-off-by: Jan Lindemann <jan@janware.com>
19 lines
551 B
Makefile
19 lines
551 B
Makefile
TOPDIR = ../../../..
|
|
|
|
include $(TOPDIR)/make/proj.mk
|
|
include $(JWBDIR)/make/py-run.mk
|
|
|
|
# -- Persistent fixture base directory. Empty by default: the test
|
|
# runs in a temporary directory. If set, the test builds its
|
|
# fixture there and leaves it for inspection until `make clean`
|
|
SECRETS_TEST_BASE ?=
|
|
|
|
EXE_ARGS = $(SECRETS_TEST_BASE)
|
|
|
|
all:
|
|
test: run
|
|
|
|
clean: clean.secrets-test
|
|
.PHONY: clean.secrets-test
|
|
clean.secrets-test:
|
|
@if [ -n "$(SECRETS_TEST_BASE)" ]; then rm -rf "$(SECRETS_TEST_BASE)"; fi
|