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

Unified Diff: scripts/slave/recipe_modules/test_utils/test_api.py

Issue 1506073002: Switch remaining bots to new Telemetry GPU isolate. (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/build.git@master
Patch Set: Rebased again. Created 5 years 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 | « scripts/slave/recipe_modules/swarming/api.py ('k') | scripts/slave/recipes/chromium_trybot.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 39a29f96c94fc3d3522947bb6a7a4599138f453a..13ccd510accc07a20d7751c9196404079dc7a5f4 100644
--- a/scripts/slave/recipe_modules/test_utils/test_api.py
+++ b/scripts/slave/recipe_modules/test_utils/test_api.py
@@ -112,41 +112,6 @@ class TestUtilsTestApi(recipe_test_api.RecipeTestApi):
ret.retcode = retcode
return ret
- 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."""
- 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': [
- {
- 'failure': not passing,
- 'internal_failure': False
- }
- ]
- }
-
- swarming_path = '0\\results.json' if is_win else '0/results.json'
- results_path = swarming_path if swarming else 'results.json'
- files_dict = {
- results_path: json.dumps(jsonish_results),
- 'summary.json': json.dumps(jsonish_summary)
- }
- return self.m.raw_io.output_dir(files_dict)
-
def canned_isolated_script_output(self, passing, is_win, swarming=False,
swarming_internal_failure=False,
isolated_script_passing=True, valid=True):
« no previous file with comments | « scripts/slave/recipe_modules/swarming/api.py ('k') | scripts/slave/recipes/chromium_trybot.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698