| Index: scripts/slave/recipe_modules/test_utils/test_api.py
|
| diff --git a/scripts/slave/recipe_modules/test_utils/test_api.py b/scripts/slave/recipe_modules/test_utils/test_api.py
|
| index b4b6c0fe02cb05ae270d18ffcdc9dd848d90143f..fa1c93a10276ffd7377cefbb01be4d7476ed2186 100644
|
| --- a/scripts/slave/recipe_modules/test_utils/test_api.py
|
| +++ b/scripts/slave/recipe_modules/test_utils/test_api.py
|
| @@ -112,16 +112,23 @@ class TestUtilsTestApi(recipe_test_api.RecipeTestApi):
|
| ret.retcode = retcode
|
| return ret
|
|
|
| - def canned_telemetry_gpu_output(self, passing, is_win, swarming=False):
|
| + def canned_telemetry_gpu_output(self, passing, is_win, swarming=False,
|
| + empty_per_page_values=False):
|
| """Produces a 'json test results' compatible object for telemetry tests."""
|
| - jsonish_results = {
|
| - 'per_page_values': [{'type': 'success' if passing else 'failure',
|
| - 'page_id': 0},
|
| - {'type': 'success',
|
| - 'page_id': 1}],
|
| - 'pages': {'0': {'name': 'Test.Test1'},
|
| - '1': {'name': 'Test.Test2'}},
|
| - }
|
| + if empty_per_page_values:
|
| + jsonish_results = {
|
| + 'per_page_values': [],
|
| + 'pages': { },
|
| + }
|
| + else:
|
| + jsonish_results = {
|
| + 'per_page_values': [{'type': 'success' if passing else 'failure',
|
| + 'page_id': 0},
|
| + {'type': 'success',
|
| + 'page_id': 1}],
|
| + 'pages': {'0': {'name': 'Test.Test1'},
|
| + '1': {'name': 'Test.Test2'}},
|
| + }
|
|
|
| jsonish_summary = {
|
| 'shards': [
|
|
|