Re: Fixing the build to run python tests

2017-11-29 Thread Eric S. Raymond via devel
Ian Bruene via devel : > > First issue (blocker) I see you solved this one already, good work. > Second issue (non-blocker, but ugly) > > In order to run unit tests on python code the "pytest" waf module is > required. Attempting to load it normally failed, leading me to believe that > it was n

Re: Fixing the build to run python tests

2017-11-29 Thread Fred Wright via devel
On Wed, 29 Nov 2017, Ian Bruene via devel wrote: > > On 11/29/2017 04:17 PM, Hal Murray via devel wrote: > > That link lets you test python code using the new libraries. > > > > In a previous version of that code, the link was in ntpclients and you could > > run things by cd-ing there. Now the li

Re: Fixing the build to run python tests

2017-11-29 Thread Ian Bruene via devel
The first issue has been solved, I stopped blanking out on the relevant build code for creating symlinks and figured out what did what. The second issue remains. -- /"In the end; what separates a Man, from a Slave? Money? Power? No. A Man Chooses, a Slave Obeys."/ -- Andrew Ryan /"Utopia c

Re: Fixing the build to run python tests

2017-11-29 Thread Ian Bruene via devel
On 11/29/2017 04:17 PM, Hal Murray via devel wrote: That link lets you test python code using the new libraries. In a previous version of that code, the link was in ntpclients and you could run things by cd-ing there. Now the link is in $build/main/ntpclients so you have to cd there. Are you

Re: Fixing the build to run python tests

2017-11-29 Thread Hal Murray via devel
> The cause of this issue is that the python libraries are stored in pylib/ > but installed (and referenced in the code) as ntp/. Previously this caused > import problems that were solved when someone added code to create a > symlink from ntp/ to pylib/ at the end of the build process. That

Fixing the build to run python tests

2017-11-29 Thread Ian Bruene via devel
First issue (blocker) I have succeeded in getting the unit testing scripts for python code to run as part of the build on my machine, however when uploaded to GitLab the pipelines fail with an import error in the test scripts. The test modules cannot import the library modules they are meant