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

Unified Diff: scripts/slave/recipe_modules/test_results/resources/upload_test_results.py

Issue 2409993005: Rename --input-gtest-json flag to --input-json flag (Closed)
Patch Set: 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: scripts/slave/recipe_modules/test_results/resources/upload_test_results.py
diff --git a/scripts/slave/recipe_modules/test_results/resources/upload_test_results.py b/scripts/slave/recipe_modules/test_results/resources/upload_test_results.py
index 974d5bd08a77dfe27e9f9602f3966bc72639575c..2a1ae7ea41e9425499cdd978f6854d3686887300 100755
--- a/scripts/slave/recipe_modules/test_results/resources/upload_test_results.py
+++ b/scripts/slave/recipe_modules/test_results/resources/upload_test_results.py
@@ -87,7 +87,7 @@ def main():
' e.g. unit-tests.')
option_parser.add_option('--results-directory', default=os.getcwd(),
help='Output results directory source dir.')
- option_parser.add_option('--input-gtest-json',
+ option_parser.add_option('--input-json',
help='Test results json file (input for us).')
option_parser.add_option('--builder-name',
default='DUMMY_BUILDER_NAME',
@@ -115,8 +115,8 @@ def main():
option_parser.error('--test-type needs to be specified.')
return 1
- if not options.input_gtest_json:
- option_parser.error('--input-gtest-json needs to be specified.')
+ if not options.input_json:
+ option_parser.error('--input-json needs to be specified.')
return 1
if options.test_results_server and not options.master_name:
@@ -124,7 +124,7 @@ def main():
'--master-name is not specified; the results won\'t be '
'uploaded to the server.')
- with file(options.input_gtest_json) as json_file:
+ with file(options.input_json) as json_file:
results_map = get_results_map_from_json(json_file.read())
generate_json_results(results_map, options.builder_name,
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698