fix: execute YAML tests
The execution of vppcfg/tests.py from the main directory will cause the --test flag to not glob any YAML files. Enter the source directory before executing the tests. Before: - No YAML tests were executed, so 'success' was always returned. Unit tests were all executed. After: - Both unit tests and YAML tests are executed (and they all pass)
This commit is contained in:
4
Makefile
4
Makefile
@ -8,7 +8,7 @@ WIPE=dist $(VPPCFG).egg-info .pybuild debian/vppcfg debian/vppcfg.*.log
|
||||
WIPE+=debian/vppcfg.*.debhelper debian/.debhelper debian/files
|
||||
WIPE+=debian/vppcfg.substvars
|
||||
WHL_INSTALL=dist/$(VPPCFG)-$(VERSION)-py3-none-any.whl
|
||||
TESTS=$(VPPCFG)/tests.py
|
||||
TESTS=tests.py
|
||||
|
||||
.PHONY: build
|
||||
build:
|
||||
@ -32,7 +32,7 @@ check-style:
|
||||
|
||||
.PHONY: test
|
||||
test:
|
||||
PYTHONPATH=./$(VPPCFG) $(PYTHON) $(TESTS)
|
||||
@cd $(VPPCFG); PYTHONPATH=./$(VPPCFG) $(PYTHON) tests.py
|
||||
|
||||
.PHONY: uninstall
|
||||
uninstall:
|
||||
|
Reference in New Issue
Block a user