laforge submitted this change.

View Change

Approvals: Jenkins Builder: Verified laforge: Looks good to me, approved
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(-)

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 change 38096. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-MessageType: merged
Gerrit-Project: python/pyosmocom
Gerrit-Branch: master
Gerrit-Change-Id: I9c6025d50d8e4c290660805890146881d49d1f38
Gerrit-Change-Number: 38096
Gerrit-PatchSet: 1
Gerrit-Owner: laforge <laforge@osmocom.org>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge@osmocom.org>