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

Side by Side Diff: build/android/buildbot/bb_run_bot.py

Issue 11857014: Move android reboot step into python (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixed multiprocessing comment Created 7 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
« no previous file with comments | « build/android/buildbot/bb_device_steps.py ('k') | build/android/buildbot/bb_tests.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 json 8 import json
9 import optparse 9 import optparse
10 import os 10 import os
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 if bot_config.bash_funs: 48 if bot_config.bash_funs:
49 bash_base = [ 49 bash_base = [
50 '. build/android/buildbot/buildbot_functions.sh', 50 '. build/android/buildbot/buildbot_functions.sh',
51 "bb_baseline_setup %s '%s'" % 51 "bb_baseline_setup %s '%s'" %
52 (CHROME_SRC, "' '".join(property_args))] 52 (CHROME_SRC, "' '".join(property_args))]
53 commands.append(Command( 53 commands.append(Command(
54 None, ['bash', '-exc', '; '.join(bash_base + bot_config.bash_funs)])) 54 None, ['bash', '-exc', '; '.join(bash_base + bot_config.bash_funs)]))
55 55
56 test_obj = bot_config.test_obj 56 test_obj = bot_config.test_obj
57 if test_obj: 57 if test_obj:
58 run_test_cmd = ['build/android/buildbot/bb_tests.py'] + property_args 58 run_test_cmd = [
59 'build/android/buildbot/bb_device_steps.py', '--reboot'] + property_args
59 for test in test_obj.tests: 60 for test in test_obj.tests:
60 run_test_cmd.extend(['-f', test]) 61 run_test_cmd.extend(['-f', test])
61 if test_obj.extra_args: 62 if test_obj.extra_args:
62 run_test_cmd.extend(test_obj.extra_args) 63 run_test_cmd.extend(test_obj.extra_args)
63 commands.append(Command('Run tests', run_test_cmd)) 64 commands.append(Command('Run tests', run_test_cmd))
64 65
65 return commands 66 return commands
66 67
67 68
68 def GetBotStepMap(): 69 def GetBotStepMap():
69 compile_step = ['bb_compile'] 70 compile_step = ['bb_compile']
70 std_build_steps = ['bb_compile', 'bb_zip_build'] 71 std_build_steps = ['bb_compile', 'bb_zip_build']
71 std_test_steps = ['bb_extract_build', 'bb_reboot_phones'] 72 std_test_steps = ['bb_extract_build']
72 std_tests = ['ui', 'unit'] 73 std_tests = ['ui', 'unit']
73 74
74 B = BotConfig 75 B = BotConfig
75 def T(tests, extra_args=None): 76 def T(tests, extra_args=None):
76 return TestConfig(tests, extra_args) 77 return TestConfig(tests, extra_args)
77 78
78 bot_configs = [ 79 bot_configs = [
79 # Main builders 80 # Main builders
80 B('main-builder-dbg', 81 B('main-builder-dbg',
81 ['bb_compile', 'bb_run_findbugs', 'bb_zip_build'], None, None), 82 ['bb_compile', 'bb_run_findbugs', 'bb_zip_build'], None, None),
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 continue 186 continue
186 env = dict(os.environ) 187 env = dict(os.environ)
187 env['BUILDBOT_TESTING'] = '1' 188 env['BUILDBOT_TESTING'] = '1'
188 189
189 return_code |= subprocess.call(command, cwd=CHROME_SRC, env=env) 190 return_code |= subprocess.call(command, cwd=CHROME_SRC, env=env)
190 return return_code 191 return return_code
191 192
192 193
193 if __name__ == '__main__': 194 if __name__ == '__main__':
194 sys.exit(main(sys.argv)) 195 sys.exit(main(sys.argv))
OLDNEW
« no previous file with comments | « build/android/buildbot/bb_device_steps.py ('k') | build/android/buildbot/bb_tests.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698