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

Side by Side Diff: frog/scripts/buildbot_annotated_steps.py

Issue 9663028: make test.py invoked under xvfb-runw (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 9 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | tools/testing/frogpad/frogpad.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/python 1 #!/usr/bin/python
2 2
3 # Copyright (c) 2011 The Chromium Authors. All rights reserved. 3 # Copyright (c) 2011 The Chromium Authors. All rights reserved.
4 # Use of this source code is governed by a BSD-style license that can be 4 # Use of this source code is governed by a BSD-style license that can be
5 # found in the LICENSE file. 5 # found in the LICENSE file.
6 6
7 """Dart frog buildbot steps 7 """Dart frog buildbot steps
8 8
9 Runs tests for the frog compiler (running on the vm or the self-hosting version) 9 Runs tests for the frog compiler (running on the vm or the self-hosting version)
10 """ 10 """
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 # TODO(jmesserly): do we want to do anything different for the second IE 56 # TODO(jmesserly): do we want to do anything different for the second IE
57 # bot? For now we're using it to track down flakiness. 57 # bot? For now we're using it to track down flakiness.
58 number = web_pattern.group(4) 58 number = web_pattern.group(4)
59 59
60 if system == 'windows': 60 if system == 'windows':
61 system = 'win7' 61 system = 'win7'
62 62
63 return (name, mode, system, browser) 63 return (name, mode, system, browser)
64 64
65 65
66 def IsWebComponent(component): 66 def ComponentsNeedsXterm(component):
67 return component in ['frogium', 'webdriver', 'legium'] 67 return component in ['frogsh', 'frogium', 'legium', 'webdriver']
68 68
69 def TestStep(name, mode, system, component, targets, flags): 69 def TestStep(name, mode, system, component, targets, flags):
70 print '@@@BUILD_STEP %s tests: %s %s@@@' % (name, component, ' '.join(flags)) 70 print '@@@BUILD_STEP %s tests: %s %s@@@' % (name, component, ' '.join(flags))
71 sys.stdout.flush() 71 sys.stdout.flush()
72 if IsWebComponent(component) and system == 'linux': 72 if ComponentsNeedsXterm(component) and system == 'linux':
73 cmd = ['xvfb-run', '-a'] 73 cmd = ['xvfb-run', '-a']
74 else: 74 else:
75 cmd = [] 75 cmd = []
76 76
77 cmd = (cmd 77 cmd = (cmd
78 + [sys.executable, 78 + [sys.executable,
79 os.path.join('..', 'tools', 'test.py'), 79 os.path.join('..', 'tools', 'test.py'),
80 '--mode=' + mode, 80 '--mode=' + mode,
81 '--component=' + component, 81 '--component=' + component,
82 '--time', 82 '--time',
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
228 if status != 0: 228 if status != 0:
229 print '@@@STEP_FAILURE@@@' 229 print '@@@STEP_FAILURE@@@'
230 230
231 if component == 'frogium': 231 if component == 'frogium':
232 CleanUpTemporaryFiles(system, browser) 232 CleanUpTemporaryFiles(system, browser)
233 return status 233 return status
234 234
235 235
236 if __name__ == '__main__': 236 if __name__ == '__main__':
237 sys.exit(main()) 237 sys.exit(main())
OLDNEW
« no previous file with comments | « no previous file | tools/testing/frogpad/frogpad.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698