From 61f8169d6929fb3dd9f782c27155fd544bf85e78 Mon Sep 17 00:00:00 2001 From: Pim van Pelt Date: Sat, 3 Dec 2022 12:21:34 +0000 Subject: [PATCH] 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) --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 450d011..116876e 100644 --- a/Makefile +++ b/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: