Chromium Code Reviews| 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 80b3c32074f09a6e39c1254a4f74d3538b44296f..e85684ef945a4d3717ae18f0d86f965bf4e6211b 100644 |
| --- a/build/android/pylib/results/json_results.py |
| +++ b/build/android/pylib/results/json_results.py |
| @@ -8,7 +8,6 @@ import json |
| from pylib.base import base_test_result |
| - |
| def GenerateResultsDict(test_run_results): |
| """Create a results dict from |test_run_results| suitable for writing to JSON. |
| Args: |
| @@ -96,13 +95,15 @@ def GenerateResultsDict(test_run_results): |
| results_iterable = test_run_result.GetAll() |
| for r in results_iterable: |
| - iteration_data[r.GetName()].append({ |
| + result_dict = { |
| 'status': status_as_string(r.GetType()), |
| 'elapsed_time_ms': r.GetDuration(), |
| 'output_snippet': r.GetLog(), |
| 'losless_snippet': '', |
| 'output_snippet_base64:': '', |
| - }) |
| + } |
| + result_dict['tombstones'] = r.GetTombstones() or '' |
|
jbudorick
2016/08/19 01:03:53
nit: you can do this directly in the declaration:
BigBossZhiling
2016/08/19 22:37:53
Done.
|
| + iteration_data[r.GetName()].append(result_dict) |
| all_tests = all_tests.union(set(iteration_data.iterkeys())) |
| per_iteration_data.append(iteration_data) |