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

Side by Side Diff: chrome/test/chromedriver/run_buildbot_steps.py

Issue 13950008: [chromedriver] Archive adb_commands.py for mac. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 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 | « no previous file | no next file » | 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 # Copyright (c) 2013 The Chromium Authors. All rights reserved. 2 # Copyright (c) 2013 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 """Runs all the buildbot steps for ChromeDriver except for update/compile.""" 6 """Runs all the buildbot steps for ChromeDriver except for update/compile."""
7 7
8 import optparse 8 import optparse
9 import os 9 import os
10 import subprocess 10 import subprocess
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 server_orig_name = 'chromedriver2_server' 103 server_orig_name = 'chromedriver2_server'
104 server_name = 'chromedriver' 104 server_name = 'chromedriver'
105 server = os.path.join(chrome_paths.GetBuildDir([server_orig_name]), 105 server = os.path.join(chrome_paths.GetBuildDir([server_orig_name]),
106 server_orig_name) 106 server_orig_name)
107 107
108 print 'Zipping ChromeDriver server', server 108 print 'Zipping ChromeDriver server', server
109 temp_dir = util.MakeTempDir() 109 temp_dir = util.MakeTempDir()
110 zip_path = os.path.join(temp_dir, zip_name) 110 zip_path = os.path.join(temp_dir, zip_name)
111 f = zipfile.ZipFile(zip_path, 'w', zipfile.ZIP_DEFLATED) 111 f = zipfile.ZipFile(zip_path, 'w', zipfile.ZIP_DEFLATED)
112 f.write(server, server_name) 112 f.write(server, server_name)
113 if util.IsLinux(): 113 if util.IsLinux() or util.IsMac():
114 adb_commands = os.path.join(_THIS_DIR, 'chrome', 'adb_commands.py') 114 adb_commands = os.path.join(_THIS_DIR, 'chrome', 'adb_commands.py')
115 f.write(adb_commands, 'adb_commands.py') 115 f.write(adb_commands, 'adb_commands.py')
116 f.close() 116 f.close()
117 117
118 cmd = [ 118 cmd = [
119 sys.executable, 119 sys.executable,
120 os.path.join(_THIS_DIR, 'third_party', 'googlecode', 120 os.path.join(_THIS_DIR, 'third_party', 'googlecode',
121 'googlecode_upload.py'), 121 'googlecode_upload.py'),
122 '--summary', 'version of ChromeDriver2 r%s' % revision, 122 '--summary', 'version of ChromeDriver2 r%s' % revision,
123 '--project', 'chromedriver', 123 '--project', 'chromedriver',
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 cmd.append('--android-package=' + options.android_package) 158 cmd.append('--android-package=' + options.android_package)
159 159
160 passed = (util.RunCommand(cmd) == 0) 160 passed = (util.RunCommand(cmd) == 0)
161 161
162 if not options.android_package and passed: 162 if not options.android_package and passed:
163 MaybeRelease(options.revision) 163 MaybeRelease(options.revision)
164 164
165 165
166 if __name__ == '__main__': 166 if __name__ == '__main__':
167 main() 167 main()
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698