laforge has uploaded this change for review. (
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(-)
git pull ssh://gerrit.osmocom.org:29418/python/pyosmocom refs/changes/96/38096/1
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: newchange
Gerrit-Project: python/pyosmocom
Gerrit-Branch: master
Gerrit-Change-Id: I9c6025d50d8e4c290660805890146881d49d1f38
Gerrit-Change-Number: 38096
Gerrit-PatchSet: 1
Gerrit-Owner: laforge <laforge(a)osmocom.org>