Don't overwrite unit test and coverage XML results
Change-Id: I1be7b266080637d6341ed88fed97000e9ba24f10
diff --git a/Makefile b/Makefile
index f6161d4..f717a09 100644
--- a/Makefile
+++ b/Makefile
@@ -476,8 +476,12 @@
utest-with-coverage: venv protos
@ echo "Executing all unit tests and producing coverage results"
. ${VENVDIR}/bin/activate && \
- for d in $$(find ./tests/utests -type d|sort -nr); do echo $$d:; \
- nosetests --with-xcoverage --with-xunit --cover-package=voltha,common,ofagent $$d; done
+ for d in $$(find ./tests/utests -type d|sort -nr); do \
+ echo $$d:; \
+ nosetests --with-xcoverage --xcoverage-file="$$d/coverage.xml" \
+ --with-xunit --xunit-file="$$d/nosetests.xml" \
+ --cover-package=voltha,common,ofagent $$d; \
+ done
else
utest-with-coverage: protos test_runner
@echo "Executing all unit tests and producing coverage results"
@@ -490,10 +494,12 @@
--rm --net=host -v /var/run/docker.sock:/var/run/docker.sock \
${REGISTRY}${REPSOITORY}voltha-test_runner:${TAG} \
bash -c \
- 'for d in $$(find ./tests/utests -type d|sort -nr); do \
- echo $$d:; \
- nosetests --with-xcoverage --with-xunit --cover-package=voltha,common,ofagent $$d; \
- done'
+ 'for d in $$(find ./tests/utests -type d|sort -nr); do \
+ echo $$d:; \
+ nosetests --with-xcoverage --xcoverage-file="$$d/coverage.xml" \
+ --with-xunit --xunit-file="$$d/nosetests.xml" \
+ --cover-package=voltha,common,ofagent $$d; \
+ done'
endif
ifneq ($(VOLTHA_BUILD),docker)