The bot step that runs ui_tests uses scripts/slave/runtest.py.  You could probably set PATH in that script before launching ui_tests.<div><br></div><div><a href="http://build.chromium.org/p/chromium/builders/Mac10.5%20Tests%20%282%29/builds/10395/steps/ui_tests/logs/stdio">http://build.chromium.org/p/chromium/builders/Mac10.5%20Tests%20%282%29/builds/10395/steps/ui_tests/logs/stdio</a></div>
<div><a href="http://src.chromium.org/viewvc/chrome/trunk/tools/build/scripts/slave/runtest.py?revision=103047&view=markup">http://src.chromium.org/viewvc/chrome/trunk/tools/build/scripts/slave/runtest.py?revision=103047&view=markup</a></div>
<div><br><br><div class="gmail_quote">On Thu, Nov 17, 2011 at 5:22 PM, Adam Barth <span dir="ltr"><<a href="mailto:abarth@webkit.org">abarth@webkit.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
(Sorry if we're spamming webkit-dev with this thread.  We can move it<br>
to a Chromium infrastructure mailing list if we're bugging anyone.)<br>
<div><div class="h5"><br>
On Thu, Nov 17, 2011 at 5:17 PM, Dirk Pranke <<a href="mailto:dpranke@chromium.org">dpranke@chromium.org</a>> wrote:<br>
> On Thu, Nov 17, 2011 at 5:06 PM, Eric Seidel <<a href="mailto:eric@webkit.org">eric@webkit.org</a>> wrote:<br>
>> On Thu, Nov 17, 2011 at 4:53 PM, Tony Chang <<a href="mailto:tony@chromium.org">tony@chromium.org</a>> wrote:<br>
>>> new-run-webkit-httpd imports common/host.py which imports lots of stuff<br>
>>> including common/net/buildbot.py, which will fail to import the json module.<br>
>>> I would land smaller pieces so the rollback isn't as painful. :)<br>
>><br>
>> Adam appears to have listed the files:<br>
>> <a href="http://codesearch.google.com/#search/&exact_package=chromium&q=new-run-webkit&type=cs" target="_blank">http://codesearch.google.com/#search/&exact_package=chromium&q=new-run-webkit&type=cs</a><br>

>><br>
>> Can someone with chromium commit-bit, please move those 3 files to<br>
>> call python 2.7 in whatever the proper way is, so we can move forward<br>
>> here?<br>
><br>
> 2.7? Aren't we just requiring 2.6? I don't think any of the Chromium<br>
> bots can assume 2.7 (except for the ones Tony has upgraded), and none<br>
> of my machines (except for maybe my Lion machine at home) even have<br>
> 2.7 installed.<br>
<br>
</div></div>The pattern Tony used for new-run-webkit-tests was to detect whether<br>
Python 2.7 was installed at a certain path before trying to use it.<br>
That pattern seems like it would work in these cases too.  The one<br>
tricky one is ui_test because the launcher is in C++.  Perhaps it<br>
should call a wrapper script instead?<br>
<span class="HOEnZb"><font color="#888888"><br>
Adam<br>
</font></span></blockquote></div><br></div>