laforge has submitted this change. ( https://gerrit.osmocom.org/c/python/pyosmocom/+/38096?usp=email )
Change subject: contrib/jenkins.sh: Fix unittest discovery ...................................................................... contrib/jenkins.sh: Fix unittest discovery With the 'src-layout', we cannot rely on unittst finding the code to test, as it's in a sub-directory. Let's change to the 'src' directory before calling unittest. Change-Id: I9c6025d50d8e4c290660805890146881d49d1f38 --- M contrib/jenkins.sh 1 file changed, 1 insertion(+), 1 deletion(-) Approvals: Jenkins Builder: Verified laforge: Looks good to me, approved diff --git a/contrib/jenkins.sh b/contrib/jenkins.sh index cbe2f39..afd66eb 100755 --- a/contrib/jenkins.sh +++ b/contrib/jenkins.sh @@ -19,7 +19,7 @@ pip install -r requirements.txt # Execute automatically discovered unit tests - python -m unittest discover -v -s tests/ + (cd src && python -m unittest discover -v -s ../tests/) ;; "distcheck") -- To view, visit https://gerrit.osmocom.org/c/python/pyosmocom/+/38096?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email Gerrit-MessageType: merged Gerrit-Project: python/pyosmocom Gerrit-Branch: master Gerrit-Change-Id: I9c6025d50d8e4c290660805890146881d49d1f38 Gerrit-Change-Number: 38096 Gerrit-PatchSet: 1 Gerrit-Owner: laforge <lafo...@osmocom.org> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: laforge <lafo...@osmocom.org>