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'), |