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