Re: [Scons-dev] Vague recollection of reporting a problem

2014-01-21 Thread Dirk Bächle

On 21.01.2014 18:39, Russel Winder wrote:

It is clearly the case that TestSCons.TestSCons().where_is(toolSequence)
uses the users current PATH to search. However when the tool is actually
used, the stripped down PATH is used. This means there appears to be no
way of checking whether a test will fail due to a failure to find the
executable of a tool.

Or am I missing something?

The method where_is() accepts a "path" as second argument, that is used 
for searching if specified. So you could call TestSCons.where_is() with 
the stripped down PATH variable as well. This should then give identical 
results...haven't tried though. ;)


Regards,

Dirk

___
Scons-dev mailing list
Scons-dev@scons.org
http://two.pairlist.net/mailman/listinfo/scons-dev


Re: [Scons-dev] Vague recollection of reporting a problem

2014-01-21 Thread Managan, Rob
Russel,

I think the alternative is TestSCons.TestSCons().detect_tool(tool). A
quick look at the source makes it look like it expects a single tool name
to be given. It seems to use an environment created for that tool and uses
its path.

*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-
Rob Managan email managan at llnl.gov
LLNL phone: 925-423-0903
P.O. Box 808, L-095   FAX:   925-422-3389
Livermore, CA  94551-0808





On 1/21/14 9:39 AM, "Russel Winder"  wrote:

>It is clearly the case that TestSCons.TestSCons().where_is(toolSequence)
>uses the users current PATH to search. However when the tool is actually
>used, the stripped down PATH is used. This means there appears to be no
>way of checking whether a test will fail due to a failure to find the
>executable of a tool.
>
>Or am I missing something?
>

___
Scons-dev mailing list
Scons-dev@scons.org
http://two.pairlist.net/mailman/listinfo/scons-dev