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

Unified Diff: tools/telemetry/telemetry/wpr/archive_info.py

Issue 834173006: [Telemetry] Fix WPR files not being downloaded when required. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove useless check. Created 5 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 side-by-side diff with in-line comments
Download patch
Index: tools/telemetry/telemetry/wpr/archive_info.py
diff --git a/tools/telemetry/telemetry/wpr/archive_info.py b/tools/telemetry/telemetry/wpr/archive_info.py
index c94bd7ba6f6117f1a295484ed4df843cf52115e2..2cf54823da51cbf062ae9ac109a8dad5189b1680 100644
--- a/tools/telemetry/telemetry/wpr/archive_info.py
+++ b/tools/telemetry/telemetry/wpr/archive_info.py
@@ -73,12 +73,9 @@ class WprArchiveInfo(object):
exists.
"""
# Download all .wpr files.
- if self._data:
aiolos (Not reviewing) 2015/01/13 19:42:58 I believe this should actually be if not self._da
nednguyen 2015/01/13 19:58:51 lizeb@'s point is self._data cannot be None since
aiolos (Not reviewing) 2015/01/13 20:18:57 Ah, I missed that comment. We might rely on this n
- return
if not self._bucket:
logging.warning('User story set in %s has no bucket specified, and '
'cannot be downloaded from cloud_storage.', )
nednguyen 2015/01/13 18:20:59 Can you add: assert 'archives' in self._data, "Inv
Benoit L 2015/01/13 18:24:39 Acknowledged. The constructor would throw without
nednguyen 2015/01/13 18:38:14 I prefer assertion since it gives a clearer debugg
-
for archive_path in self._data['archives']:
archive_path = self._WprFileNameToPath(archive_path)
try:
« no previous file with comments | « tools/telemetry/telemetry/unittest_util/system_stub.py ('k') | tools/telemetry/telemetry/wpr/archive_info_unittest.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698