[Git][NTPsec/ntpsec][buildtest] Added PYTHONPATH info to build script

Ian Bruene gitlab at mg.gitlab.com
Wed Nov 29 18:10:20 UTC 2017


Ian Bruene pushed to branch buildtest at NTPsec / ntpsec


Commits:
9ed9e60b by Ian Bruene at 2017-11-29T12:09:43-06:00
Added PYTHONPATH info to build script

- - - - -


1 changed file:

- tests/wscript


Changes:

=====================================
tests/wscript
=====================================
--- a/tests/wscript
+++ b/tests/wscript
@@ -112,24 +112,30 @@ def build(ctx):
             "M PTHREAD CRYPTO RT SOCKET NSL",
     )
 
+    pypath = "%s/pylib/" % srcnode
+
     ctx(
         features="pytest",
         pytest_source="pylib/test_util.py",
+        pytest_paths=pypath,
 		ut_str="${PYTHON} ${SRC}"
     )
     ctx(
         features="pytest",
         pytest_source="pylib/test_agentx.py",
+        pytest_paths=pypath,
 		ut_str="${PYTHON} ${SRC}"
     )
     ctx(
         features="pytest",
         pytest_source="pylib/test_packet.py",
+        pytest_paths=pypath,
 		ut_str="${PYTHON} ${SRC}"
     )
     ctx(
         features="pytest",
         pytest_source="pylib/test_statfiles.py",
+        pytest_paths=pypath,
 		ut_str="${PYTHON} ${SRC}"
     )
 
@@ -139,5 +145,6 @@ def build(ctx):
         features="subst",
         source=testpysrc,
         target=[x.get_bld() for x in testpysrc],
+        pytest_paths=pypath,
         chmod=Utils.O755,
     )



View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/9ed9e60bfc98a66eec4cacadd5611a5afca97c84

---
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/9ed9e60bfc98a66eec4cacadd5611a5afca97c84
You're receiving this email because of your account on gitlab.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ntpsec.org/pipermail/vc/attachments/20171129/97674ed3/attachment.html>


More information about the vc mailing list