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

Side by Side Diff: tools/telemetry/telemetry/record_wpr.py

Issue 12294002: Revert 182991 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 10 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 | « tools/telemetry/telemetry/possible_browser.py ('k') | tools/telemetry/telemetry/run_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 # 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 import logging 5 import logging
6 import os 6 import os
7 import sys 7 import sys
8 import tempfile 8 import tempfile
9 import time 9 import time
10 10
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 [skipped['page'].url for skipped in results.skipped_pages])) 108 [skipped['page'].url for skipped in results.skipped_pages]))
109 109
110 if results.page_successes: 110 if results.page_successes:
111 # Update the metadata for the pages which were recorded. 111 # Update the metadata for the pages which were recorded.
112 ps.wpr_archive_info.AddRecordedPages( 112 ps.wpr_archive_info.AddRecordedPages(
113 [page['page'] for page in results.page_successes]) 113 [page['page'] for page in results.page_successes])
114 else: 114 else:
115 os.remove(temp_target_wpr_file_path) 115 os.remove(temp_target_wpr_file_path)
116 116
117 return min(255, len(results.page_failures)) 117 return min(255, len(results.page_failures))
OLDNEW
« no previous file with comments | « tools/telemetry/telemetry/possible_browser.py ('k') | tools/telemetry/telemetry/run_tests.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698