| OLD | NEW |
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 # | 2 # |
| 3 # Copyright (c) 2013 The Chromium Authors. All rights reserved. | 3 # Copyright (c) 2013 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 import collections | 7 import collections |
| 8 import copy | 8 import copy |
| 9 import json | 9 import json |
| 10 import os | 10 import os |
| (...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 108 for test in test_obj.tests: | 108 for test in test_obj.tests: |
| 109 run_test_cmd.extend(['-f', test]) | 109 run_test_cmd.extend(['-f', test]) |
| 110 if test_obj.extra_args: | 110 if test_obj.extra_args: |
| 111 run_test_cmd.extend(test_obj.extra_args) | 111 run_test_cmd.extend(test_obj.extra_args) |
| 112 commands.append(run_test_cmd) | 112 commands.append(run_test_cmd) |
| 113 return commands | 113 return commands |
| 114 | 114 |
| 115 | 115 |
| 116 def GetBotStepMap(): | 116 def GetBotStepMap(): |
| 117 compile_step = ['compile'] | 117 compile_step = ['compile'] |
| 118 std_host_tests = ['check_webview_licenses', 'findbugs'] | 118 std_host_tests = ['check_webview_licenses', 'findbugs', 'lint'] |
| 119 std_build_steps = ['compile', 'zip_build'] | 119 std_build_steps = ['compile', 'zip_build'] |
| 120 std_test_steps = ['extract_build'] | 120 std_test_steps = ['extract_build'] |
| 121 std_tests = ['ui', 'unit'] | 121 std_tests = ['ui', 'unit'] |
| 122 flakiness_server = ( | 122 flakiness_server = ( |
| 123 '--flakiness-server=%s' % constants.UPSTREAM_FLAKINESS_SERVER) | 123 '--flakiness-server=%s' % constants.UPSTREAM_FLAKINESS_SERVER) |
| 124 experimental = ['--experimental'] | 124 experimental = ['--experimental'] |
| 125 | 125 |
| 126 B = BotConfig | 126 B = BotConfig |
| 127 H = (lambda steps, extra_args=None, extra_gyp=None, target_arch=None : | 127 H = (lambda steps, extra_args=None, extra_gyp=None, target_arch=None : |
| 128 HostConfig('build/android/buildbot/bb_host_steps.py', steps, extra_args, | 128 HostConfig('build/android/buildbot/bb_host_steps.py', steps, extra_args, |
| (...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 282 for command in commands: | 282 for command in commands: |
| 283 print 'Will run: ', bb_utils.CommandToString(command) | 283 print 'Will run: ', bb_utils.CommandToString(command) |
| 284 print | 284 print |
| 285 | 285 |
| 286 env = GetEnvironment(bot_config.host_obj, options.testing) | 286 env = GetEnvironment(bot_config.host_obj, options.testing) |
| 287 return RunBotCommands(options, commands, env) | 287 return RunBotCommands(options, commands, env) |
| 288 | 288 |
| 289 | 289 |
| 290 if __name__ == '__main__': | 290 if __name__ == '__main__': |
| 291 sys.exit(main(sys.argv)) | 291 sys.exit(main(sys.argv)) |
| OLD | NEW |