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

Unified Diff: testing/scripts/common.py

Issue 669813003: Update from chromium https://crrev.com/301725/ (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 2 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 | « testing/buildbot/chromium_trybot.json ('k') | testing/scripts/telemetry_unittests.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: testing/scripts/common.py
diff --git a/testing/scripts/common.py b/testing/scripts/common.py
index 92ad6882ec956d6d0342091f76d22c57fb7c005e..47e7fb7fd1a223c103c33e6f53bea9003e58db5a 100644
--- a/testing/scripts/common.py
+++ b/testing/scripts/common.py
@@ -65,13 +65,13 @@ def temporary_file():
os.remove(path)
-def parse_common_test_results(json_results):
+def parse_common_test_results(json_results, test_separator='/'):
def convert_trie_to_flat_paths(trie, prefix=None):
# Also see webkitpy.layout_tests.layout_package.json_results_generator
result = {}
for name, data in trie.iteritems():
if prefix:
- name = prefix + '/' + name
+ name = prefix + test_separator + name
if len(data) and not 'actual' in data and not 'expected' in data:
result.update(convert_trie_to_flat_paths(data, name))
else:
« no previous file with comments | « testing/buildbot/chromium_trybot.json ('k') | testing/scripts/telemetry_unittests.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698