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

Unified Diff: telemetry/telemetry/story/story_set.py

Issue 1858713002: Fail run_benchmark if archive_data_file is specified and not found (Closed) Base URL: https://github.com/catapult-project/catapult@master
Patch Set: Try base path Created 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | telemetry/telemetry/story/story_set_unittest.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: telemetry/telemetry/story/story_set.py
diff --git a/telemetry/telemetry/story/story_set.py b/telemetry/telemetry/story/story_set.py
index 667cbd01ebb7b9b3114da16ae16933335b97f9ef..a4f8c3f3c5e119efe1b2379a83a6b70ac73dfbfe 100644
--- a/telemetry/telemetry/story/story_set.py
+++ b/telemetry/telemetry/story/story_set.py
@@ -32,6 +32,11 @@ class StorySet(object):
storage.
"""
self.stories = []
+ archive_data_file_path = archive_data_file
+ if base_dir:
+ archive_data_file_path = os.path.join(base_dir, archive_data_file)
+ if archive_data_file and not os.path.exists(archive_data_file_path):
+ raise IOError('%s is not found' % archive_data_file_path)
self._archive_data_file = archive_data_file
self._wpr_archive_info = None
archive_info.AssertValidCloudStorageBucket(cloud_storage_bucket)
« no previous file with comments | « no previous file | telemetry/telemetry/story/story_set_unittest.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698