diff options
-rw-r--r-- | crosperf/results_cache.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/crosperf/results_cache.py b/crosperf/results_cache.py index e1bcdce8..d40c8f31 100644 --- a/crosperf/results_cache.py +++ b/crosperf/results_cache.py @@ -294,10 +294,18 @@ class TelemetryResult(Result): # We need to convert to this format: # {"www.google.com:average_commit_time (ms)": "33.4", # "www.google.com:...": "21.2"} + # Added note: Occasionally the output comes back + # with "JSON.stringify(window.automation.GetResults())" on + # the first line, and then the rest of the output as + # described above. lines = self.out.splitlines() self.keyvals = {} + if lines: + if lines[0].startswith("JSON.stringify"): + lines = lines[1:] + if not lines: return labels = lines[0].split(",") |