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

Unified Diff: telemetry/telemetry/internal/story_runner.py

Issue 2055043002: Plumb IterationInfo from telemetry to a diagnostic (Closed) Base URL: https://github.com/catapult-project/catapult.git@master
Patch Set: IterationInfo python class Created 4 years, 6 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: telemetry/telemetry/internal/story_runner.py
diff --git a/telemetry/telemetry/internal/story_runner.py b/telemetry/telemetry/internal/story_runner.py
index 4d736cd6d6dd6f3e6e705ed32855d9764a0ba113..1a65623d4cbc4a7daef6a10aa4c0cdf466e04469 100644
--- a/telemetry/telemetry/internal/story_runner.py
+++ b/telemetry/telemetry/internal/story_runner.py
@@ -209,9 +209,9 @@ def Run(test, story_set, finder_options, results, max_failures=None,
for group in story_groups:
state = None
try:
- for _ in xrange(finder_options.pageset_repeat):
+ for storyset_repeat_counter in xrange(finder_options.pageset_repeat):
for story in group.stories:
- for _ in xrange(finder_options.page_repeat):
+ for story_repeat_counter in xrange(finder_options.page_repeat):
if not state:
# Construct shared state by using a copy of finder_options. Shared
# state may update the finder_options. If we tear down the shared
@@ -219,7 +219,8 @@ def Run(test, story_set, finder_options, results, max_failures=None,
# state for the next story from the original finder_options.
state = group.shared_state_class(
test, finder_options.Copy(), story_set)
- results.WillRunPage(story)
+ results.WillRunPage(
+ story, storyset_repeat_counter, story_repeat_counter)
try:
_WaitForThermalThrottlingIfNeeded(state.platform)
_RunStoryAndProcessErrorIfNeeded(story, results, state, test)
« no previous file with comments | « telemetry/telemetry/internal/results/results_options.py ('k') | telemetry/telemetry/internal/story_runner_unittest.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698