Index: build/android/pylib/results/json_results.py |
diff --git a/build/android/pylib/results/json_results.py b/build/android/pylib/results/json_results.py |
index 4e5c72031a69e4072f857937cebcb94d9811f342..47e40f2c296e241c4e24950d8b1c8f6dbfe26d53 100644 |
--- a/build/android/pylib/results/json_results.py |
+++ b/build/android/pylib/results/json_results.py |
@@ -87,12 +87,16 @@ def GenerateResultsDict(test_run_results): |
all_tests = set() |
per_iteration_data = [] |
+ base_links = {} |
for test_run_result in test_run_results: |
iteration_data = collections.defaultdict(list) |
if isinstance(test_run_result, list): |
results_iterable = itertools.chain(*(t.GetAll() for t in test_run_result)) |
+ base_links.update({ |
+ k: v for tr in test_run_result for k, v in tr.GetLinks().items()}) |
else: |
results_iterable = test_run_result.GetAll() |
+ base_links.update(test_run_result.GetLinks()) |
for r in results_iterable: |
result_dict = { |
@@ -101,8 +105,7 @@ def GenerateResultsDict(test_run_results): |
'output_snippet': r.GetLog(), |
'losless_snippet': '', |
'output_snippet_base64': '', |
- 'tombstones': r.GetTombstonesUrl() or '', |
- 'logcat_url': r.GetLogcatUrl() or '', |
+ 'links': r.GetLinks(), |
} |
iteration_data[r.GetName()].append(result_dict) |
@@ -115,6 +118,7 @@ def GenerateResultsDict(test_run_results): |
# TODO(jbudorick): Add support for disabled tests within base_test_result. |
'disabled_tests': [], |
'per_iteration_data': per_iteration_data, |
+ 'links': base_links, |
} |