Yo James!

Python always looks in the current directory, before looking in
PYTHONPATH or system paths.  So better to just run the tests where the
test ntp module is.

Less is more.


On Sat, 12 Dec 2020 18:35:13 -0800
James Browning via devel <devel@ntpsec.org> wrote:

> On Sat, Dec 12, 2020 at 6:16 PM Gary E. Miller via devel
> <devel@ntpsec.org> wrote:
> 
> > Yo James!
> >
> > On Sat, 12 Dec 2020 18:04:57 -0800
> > James Browning via devel <devel@ntpsec.org> wrote:
> >  
> > > It looks like a4c2c7921f144674402c2a3dbfc13a87b1ea3d1f can you
> > > confirm?  
> >
> > Confirmed.
> >  
> 
> The following patch clears it up on the machine I bisected on.
> 
> diff --git a/wafhelpers/bin_test.py b/wafhelpers/bin_test.py
> index 8501ef6fc..9c06b63fc 100644
> --- a/wafhelpers/bin_test.py
> +++ b/wafhelpers/bin_test.py
> @@ -105,7 +105,7 @@ def cmd_bin_test(ctx):
> 
>      if ctx.cmd == 'install':
>          pypath = destdir + ctx.env.PYTHONARCHDIR  # + os.sep + 'ntp'
> -        env = {'PYTHONPATH': pypath} if destdir != '/' else {}
> +        env = {'PYTHONPATH': pypath}
>          path = destdir + os.sep if destdir != '/' else '/'
>          spath = path + ctx.env.SBINDIR[1:] + os.sep
>          path = path + ctx.env.BINDIR[1:] + os.sep




RGDS
GARY
---------------------------------------------------------------------------
Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97703
        g...@rellim.com  Tel:+1 541 382 8588

            Veritas liberabit vos. -- Quid est veritas?
    "If you can't measure it, you can't improve it." - Lord Kelvin

Attachment: pgpq_87q5fBKb.pgp
Description: OpenPGP digital signature

_______________________________________________
devel mailing list
devel@ntpsec.org
http://lists.ntpsec.org/mailman/listinfo/devel

Reply via email to