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

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

Issue 9086008: Add python wrapper for test.dart. (Closed) Base URL: https://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 unified diff | Download patch | Annotate | Revision Log
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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 51
52 def TestStep(name, mode, component, targets, flags): 52 def TestStep(name, mode, component, targets, flags):
53 print '@@@BUILD_STEP %s tests: %s@@@' % (name, component) 53 print '@@@BUILD_STEP %s tests: %s@@@' % (name, component)
54 if component == 'frogium': 54 if component == 'frogium':
55 cmd = ['xvfb-run'] 55 cmd = ['xvfb-run']
56 else: 56 else:
57 cmd = [] 57 cmd = []
58 58
59 cmd = (cmd 59 cmd = (cmd
60 + [sys.executable, 60 + [sys.executable,
61 '../tools/test.py', 61 '../tools/test_wrapper.py',
62 '--mode=' + mode, 62 '--mode=' + mode,
63 '--component=' + component, 63 '--component=' + component,
64 '--time', 64 '--time',
65 '--report', 65 '--report',
66 '--progress=buildbot', 66 '--progress=buildbot',
67 '-v'] 67 '-v']
68 + targets) 68 + targets)
69 if flags: 69 if flags:
70 cmd.append(flags) 70 cmd.append(flags)
71 exit_code = subprocess.call(cmd, env=NO_COLOR_ENV) 71 exit_code = subprocess.call(cmd, env=NO_COLOR_ENV)
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 return 1 122 return 1
123 123
124 status = TestFrog(arch, mode) 124 status = TestFrog(arch, mode)
125 if status != 0: 125 if status != 0:
126 print '@@@STEP_FAILURE@@@' 126 print '@@@STEP_FAILURE@@@'
127 return status 127 return status
128 128
129 129
130 if __name__ == '__main__': 130 if __name__ == '__main__':
131 sys.exit(main()) 131 sys.exit(main())
OLDNEW
« no previous file with comments | « frog/presubmit.py ('k') | tools/test_wrapper.py » ('j') | tools/test_wrapper.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698