| OLD | NEW |
| 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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 def TestStep(name, mode, system, component, targets, flags): | 73 def TestStep(name, mode, system, component, targets, flags): |
| 74 print '@@@BUILD_STEP %s tests: %s %s@@@' % (name, component, flags) | 74 print '@@@BUILD_STEP %s tests: %s %s@@@' % (name, component, flags) |
| 75 sys.stdout.flush() | 75 sys.stdout.flush() |
| 76 if (component == 'frogium' or component == 'webdriver') and system == 'linux': | 76 if (component == 'frogium' or component == 'webdriver') and system == 'linux': |
| 77 cmd = ['xvfb-run', '-a'] | 77 cmd = ['xvfb-run', '-a'] |
| 78 else: | 78 else: |
| 79 cmd = [] | 79 cmd = [] |
| 80 | 80 |
| 81 cmd = (cmd | 81 cmd = (cmd |
| 82 + [sys.executable, | 82 + [sys.executable, |
| 83 os.path.join('..', 'tools', 'test_wrapper.py'), | 83 os.path.join('..', 'tools', 'test.py'), |
| 84 '--mode=' + mode, | 84 '--mode=' + mode, |
| 85 '--component=' + component, | 85 '--component=' + component, |
| 86 '--time', | 86 '--time', |
| 87 '--report', | 87 '--report', |
| 88 '--progress=buildbot', | 88 '--progress=buildbot', |
| 89 '-v'] | 89 '-v'] |
| 90 + targets) | 90 + targets) |
| 91 if flags: | 91 if flags: |
| 92 cmd.extend(flags) | 92 cmd.extend(flags) |
| 93 | 93 |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 179 | 179 |
| 180 status = TestFrog(arch, mode, system, browser, ['--checked']) | 180 status = TestFrog(arch, mode, system, browser, ['--checked']) |
| 181 if status != 0: | 181 if status != 0: |
| 182 print '@@@STEP_FAILURE@@@' | 182 print '@@@STEP_FAILURE@@@' |
| 183 | 183 |
| 184 return status | 184 return status |
| 185 | 185 |
| 186 | 186 |
| 187 if __name__ == '__main__': | 187 if __name__ == '__main__': |
| 188 sys.exit(main()) | 188 sys.exit(main()) |
| OLD | NEW |