| OLD | NEW |
| (Empty) |
| 1 #!/usr/bin/env python | |
| 2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | |
| 3 # Use of this source code is governed by a BSD-style license that can be | |
| 4 # found in the LICENSE file. | |
| 5 | |
| 6 """Entry point for the QA buildbots. | |
| 7 | |
| 8 This script is called from buildbot and reports results using the buildbot | |
| 9 annotation scheme. | |
| 10 """ | |
| 11 | |
| 12 import optparse | |
| 13 import sys | |
| 14 | |
| 15 from common import chromium_utils | |
| 16 | |
| 17 | |
| 18 def main(): | |
| 19 parser = optparse.OptionParser() | |
| 20 chromium_utils.AddPropertiesOptions(parser) | |
| 21 options, _ = parser.parse_args() | |
| 22 master_name = options.build_properties.get('mastername') | |
| 23 | |
| 24 if master_name == 'chromium.pyauto': | |
| 25 return chromium_utils.RunCommand( | |
| 26 [sys.executable, | |
| 27 '../../../scripts/slave/runtest.py', | |
| 28 '--build-dir', 'src/build', | |
| 29 '--run-python-script', | |
| 30 'src/chrome/test/chromedriver/run_buildbot_steps.py', | |
| 31 '--revision', | |
| 32 options.build_properties.get('got_revision'), | |
| 33 ]) | |
| 34 else: | |
| 35 raise RuntimeError('Unrecognized master: ' + master_name) | |
| 36 | |
| 37 | |
| 38 if __name__ == '__main__': | |
| 39 sys.exit(main()) | |
| OLD | NEW |