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

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

Issue 2777233002: [chromedriver] Fix path for server logs and add logging. (Closed)
Patch Set: Created 3 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
« 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 bisect 8 import bisect
9 import csv 9 import csv
10 import datetime 10 import datetime
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 'chromedriver')) 54 'chromedriver'))
55 if slave_utils.GSUtilCopy( 55 if slave_utils.GSUtilCopy(
56 zip_path, 56 zip_path,
57 '%s/%s' % (GS_PREBUILTS_URL, 'r%s.zip' % commit_position)): 57 '%s/%s' % (GS_PREBUILTS_URL, 'r%s.zip' % commit_position)):
58 util.MarkBuildStepError() 58 util.MarkBuildStepError()
59 59
60 60
61 def _ArchiveServerLogs(): 61 def _ArchiveServerLogs():
62 """Uploads chromedriver server logs to google storage.""" 62 """Uploads chromedriver server logs to google storage."""
63 util.MarkBuildStepStart('archive chromedriver server logs') 63 util.MarkBuildStepStart('archive chromedriver server logs')
64 for server_log in glob.glob(os.path.join(tempfile.gettempdir(), 64 pathname_pattern = os.path.join(tempfile.gettempdir(), 'chromedriver_log_*')
65 'chromedriver_*', 65 print 'archiving logs from: %s' % pathname_pattern
66 'chromedriver_log_*')): 66 for server_log in glob.glob(pathname_pattern):
67 if os.path.isfile(server_log): 67 if os.path.isfile(server_log):
68 base_name = os.path.basename(server_log) 68 base_name = os.path.basename(server_log)
69 util.AddLink(base_name, '%s/%s' % (SERVER_LOGS_LINK, base_name)) 69 util.AddLink(base_name, '%s/%s' % (SERVER_LOGS_LINK, base_name))
70 slave_utils.GSUtilCopy( 70 slave_utils.GSUtilCopy(
71 server_log, 71 server_log,
72 '%s/%s' % (GS_SERVER_LOGS_URL, base_name), 72 '%s/%s' % (GS_SERVER_LOGS_URL, base_name),
73 mimetype='text/plain') 73 mimetype='text/plain')
74 74
75 75
76 def _DownloadPrebuilts(): 76 def _DownloadPrebuilts():
(...skipping 407 matching lines...) Expand 10 before | Expand all | Expand 10 after
484 util.MarkBuildStepStart('run_all_tests.py') 484 util.MarkBuildStepStart('run_all_tests.py')
485 util.MarkBuildStepError() 485 util.MarkBuildStepError()
486 486
487 # Add a "cleanup" step so that errors from runtest.py or bb_device_steps.py 487 # Add a "cleanup" step so that errors from runtest.py or bb_device_steps.py
488 # (which invoke this script) are kept in their own build step. 488 # (which invoke this script) are kept in their own build step.
489 util.MarkBuildStepStart('cleanup') 489 util.MarkBuildStepStart('cleanup')
490 490
491 491
492 if __name__ == '__main__': 492 if __name__ == '__main__':
493 main() 493 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