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

Reply via email to