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

Unified Diff: tools/perf/page_sets/ct_page_set.py

Issue 1856603003: Fail CT run_benchmark if archive_data_file is not found (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix import 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/perf/page_sets/ct_page_set.py
diff --git a/tools/perf/page_sets/ct_page_set.py b/tools/perf/page_sets/ct_page_set.py
index 97debadf91f371614f04ef9c68913788e371c1ef..7c20824abb99e23a9e7ca5c4b1a573b810e5fd55 100644
--- a/tools/perf/page_sets/ct_page_set.py
+++ b/tools/perf/page_sets/ct_page_set.py
@@ -3,6 +3,8 @@
# found in the LICENSE file.
+import os
+
from page_sets import repaint_helpers
from telemetry.page import page as page_module
@@ -31,6 +33,9 @@ class CTPageSet(story.StorySet):
"""Page set used by CT Benchmarks."""
def __init__(self, urls_list, user_agent, archive_data_file):
+ if archive_data_file and not os.path.exists(archive_data_file):
+ raise IOError('%s is not found' % archive_data_file)
+
if user_agent == 'mobile':
shared_page_state_class = shared_page_state.SharedMobilePageState
elif user_agent == 'desktop':
« 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