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

Unified Diff: client/tools/buildbot_annotated_steps.py

Issue 9117010: Fix frogsh + Windows + test.dart take 2 (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: '' Created 8 years, 11 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
« no previous file with comments | « no previous file | frog/frogsh.bat » ('j') | tools/testing/perf_testing/perf_README.txt » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: client/tools/buildbot_annotated_steps.py
===================================================================
--- client/tools/buildbot_annotated_steps.py (revision 3517)
+++ client/tools/buildbot_annotated_steps.py (working copy)
@@ -64,7 +64,8 @@
name = socket.gethostname().split('.')[0]
if not version:
pipe = subprocess.Popen(
- ['svnversion', '-n'], stdout=subprocess.PIPE, stderr=subprocess.PIPE)
+ ['svnversion', '-n'], stdout=subprocess.PIPE, stderr=subprocess.PIPE,
+ shell=True)
Siggi Cherem (dart-lang) 2012/01/23 23:26:28 add this only in windows too?
output = pipe.communicate()
if pipe.returncode == 0:
version = output[0]
@@ -174,14 +175,18 @@
return subprocess.call(cmds, env=local_env)
-def ProcessFrog():
+def ProcessFrog(name):
'''
build and test experimental frog build
'''
print 'ProcessFrog'
+ if 'windows' in name:
+ os.environ['PATH'] = (os.path.join('C:', 'Program Files (x86)', 'nodejs') +
+ os.pathsep + os.environ['PATH'])
- return subprocess.call([sys.executable,
- os.path.join('frog', 'scripts', 'buildbot_annotated_steps.py')])
+ return subprocess.call([sys.executable + ' ' +
Emily Fortuna 2012/01/23 23:04:46 Fix from build break this morning.
Siggi Cherem (dart-lang) 2012/01/23 23:26:28 Add a comment here saying why we need to set shell
+ os.path.join('frog', 'scripts', 'buildbot_annotated_steps.py')],
+ env=os.environ, shell=True)
def main():
print 'main'
@@ -198,7 +203,7 @@
status = ProcessTools(mode, name, version)
#TODO(sigmund): remove this indirection once we update our bots
elif name.startswith('frog'):
- status = ProcessFrog()
+ status = ProcessFrog(name)
else:
status = ProcessDartClientTests(component, mode, platform, name)
« no previous file with comments | « no previous file | frog/frogsh.bat » ('j') | tools/testing/perf_testing/perf_README.txt » ('J')

Powered by Google App Engine
This is Rietveld 408576698