Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(283)

Unified Diff: scripts/slave/recipe_modules/chromium/api.py

Issue 17635005: Make blink_trybot recipe work on windows (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/build
Patch Set: Fix presubmit + move polyfill (retry) Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: scripts/slave/recipe_modules/chromium/api.py
diff --git a/scripts/slave/recipe_modules/chromium/api.py b/scripts/slave/recipe_modules/chromium/api.py
index 146a461e4fe150adcab041b90ff0803c062a2ba0..9608044468b0f2a177653fbd58c87e80e30847f1 100644
--- a/scripts/slave/recipe_modules/chromium/api.py
+++ b/scripts/slave/recipe_modules/chromium/api.py
@@ -34,12 +34,15 @@ class ChromiumApi(recipe_api.RecipeApi):
"""Return a runtest.py invocation."""
args = args or []
assert isinstance(args, list)
- test_args = [test] + args
python_arg = []
t_name, ext = self.m.path.splitext(self.m.path.basename(test))
if ext == '.py':
python_arg = ['--run-python-script']
+ elif self.m.platform.is_win and ext == '':
+ test += '.exe'
+
+ test_args = [test] + args
return self.m.step(name or t_name, [
'python', self.m.path.build('scripts', 'slave', 'runtest.py'),

Powered by Google App Engine
This is Rietveld 408576698