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

Unified Diff: scripts/slave/recipe_modules/test_results/api.py

Issue 2411763002: Rename upload_gtest_test_results.py to upload_test_results.py. (Closed)
Patch Set: Update README.md 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 | « no previous file | scripts/slave/recipe_modules/test_results/example.expected/upload_and_degrade_to_warning.json » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: scripts/slave/recipe_modules/test_results/api.py
diff --git a/scripts/slave/recipe_modules/test_results/api.py b/scripts/slave/recipe_modules/test_results/api.py
index 7fdbc333bf44c94c8aab50840484eb62be4a6de4..7481cbf6b69f5cd33f2f863fee6df5c41f5f654b 100644
--- a/scripts/slave/recipe_modules/test_results/api.py
+++ b/scripts/slave/recipe_modules/test_results/api.py
@@ -8,12 +8,14 @@ from recipe_engine import recipe_api
class TestResultsApi(recipe_api.RecipeApi):
"""Recipe module to upload gtest json results to test-results server."""
- def upload(self, gtest_results_file, test_type, chrome_revision,
+ def upload(self, results_file, test_type, chrome_revision,
Paweł Hajdan Jr. 2016/10/11 16:36:26 It seems useful to have explicit way of knowing ty
estaab 2016/10/13 15:46:39 I agree with Paweł, this should have been explicit
nednguyen 2016/10/13 15:54:35 I don't find how splitting the uploader into 2 scr
estaab 2016/10/20 04:56:41 Sorry, I didn't mean that we need multiple scripts
test_results_server=None, downgrade_error_to_warning=True):
- """Upload gtest results json to test-results.
+ """Upload results json to test-results.
Args:
- gtest_results_file: Path to file containing gtest json.
+ results_file: Path to file containing result json. Supported format are:
+ ttest format & full json results format (
+ http://www.chromium.org/developers/the-json-test-results-format).
test_type: Test type string, e.g. webkit_tests.
test_results_server: Server where results should be uploaded.
downgrade_error_to_warning: If True, treat a failure to upload as a
@@ -25,8 +27,8 @@ class TestResultsApi(recipe_api.RecipeApi):
try:
return self.m.python(
name='Upload to test-results [%s]' % test_type,
- script=self.resource('upload_gtest_test_results.py'),
- args=['--input-gtest-json', gtest_results_file,
+ script=self.resource('upload_test_results.py'),
+ args=['--input-json', results_file,
ghost stip (do not use) 2016/10/13 07:49:20 this broke test uploading for android. should we r
'--master-name', self.m.properties['mastername'],
'--builder-name', self.m.properties['buildername'],
'--build-number', self.m.properties['buildnumber'],
« no previous file with comments | « no previous file | scripts/slave/recipe_modules/test_results/example.expected/upload_and_degrade_to_warning.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698