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:
Pim van Pelt
2022-12-03 12:21:34 +00:00
parent a622b1d54e
commit 61f8169d69

View File

@ -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.*.debhelper debian/.debhelper debian/files
WIPE+=debian/vppcfg.substvars WIPE+=debian/vppcfg.substvars
WHL_INSTALL=dist/$(VPPCFG)-$(VERSION)-py3-none-any.whl WHL_INSTALL=dist/$(VPPCFG)-$(VERSION)-py3-none-any.whl
TESTS=$(VPPCFG)/tests.py TESTS=tests.py
.PHONY: build .PHONY: build
build: build:
@ -32,7 +32,7 @@ check-style:
.PHONY: test .PHONY: test
test: test:
PYTHONPATH=./$(VPPCFG) $(PYTHON) $(TESTS) @cd $(VPPCFG); PYTHONPATH=./$(VPPCFG) $(PYTHON) tests.py
.PHONY: uninstall .PHONY: uninstall
uninstall: uninstall: