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

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

Issue 2330133002: Updating the SwarmingIsolatedScriptTest to upload chartjson results to the (Closed)
Patch Set: Fixing presubmit issues Created 4 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 | « scripts/slave/recipe_modules/chromium_tests/steps.py ('k') | scripts/slave/recipes/chromium.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 02486691c5d13afa3c01e27065ca7451c40048a0..1adea8223c3c27a237c6c535bd38b84153576d62 100644
--- a/scripts/slave/recipe_modules/test_utils/test_api.py
+++ b/scripts/slave/recipe_modules/test_utils/test_api.py
@@ -117,7 +117,8 @@ class TestUtilsTestApi(recipe_test_api.RecipeTestApi):
isolated_script_passing=True, valid=True,
missing_shards=[],
empty_shards=[],
- output_chartjson=False):
+ output_chartjson=False,
+ benchmark_enabled=True):
"""Produces a test results' compatible json for isolated script tests. """
per_shard_results = []
per_shard_chartjson_results = []
@@ -138,6 +139,7 @@ class TestUtilsTestApi(recipe_test_api.RecipeTestApi):
jsonish_results['successes'] = []
jsonish_results['times'] = {t : 0.1 for t in tests_run}
chartjsonish_results['dummy'] = 'dummy%d' % i
+ chartjsonish_results['enabled'] = benchmark_enabled
chartjsonish_results['charts'] = {'entry%d' % idx: 'chart%d' % idx,
'entry%d' % (idx + 1): 'chart%d' % (idx + 1)}
per_shard_results.append(jsonish_results)
« no previous file with comments | « scripts/slave/recipe_modules/chromium_tests/steps.py ('k') | scripts/slave/recipes/chromium.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698