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

Unified Diff: build/android/test_runner.py

Issue 312293003: Android Perf tests: obtain the list of tests from the test runner. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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 | « build/android/pylib/perf/test_runner.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/android/test_runner.py
diff --git a/build/android/test_runner.py b/build/android/test_runner.py
index 897a2bd1fad0fa7a0f08f69fcf13cc97de0e15fd..05a1c2b6a28af1b0628d04db0356968d7555743a 100755
--- a/build/android/test_runner.py
+++ b/build/android/test_runner.py
@@ -453,6 +453,9 @@ def AddPerfTestOptions(option_parser):
help=('A JSON file containing steps that are flaky '
'and will have its exit code ignored.'))
option_parser.add_option(
+ '--output-json-list',
+ help='Write a simple list of names from --steps into the given file.')
+ option_parser.add_option(
'--print-step',
help='The name of a previously executed perf step to print.')
option_parser.add_option(
@@ -489,9 +492,9 @@ def ProcessPerfTestOptions(options, args, error_func):
if options.single_step:
single_step = ' '.join(args[2:])
return perf_test_options.PerfOptions(
- options.steps, options.flaky_steps, options.print_step,
- options.no_timeout, options.test_filter, options.dry_run,
- single_step)
+ options.steps, options.flaky_steps, options.output_json_list,
+ options.print_step, options.no_timeout, options.test_filter,
+ options.dry_run, single_step)
def _RunGTests(options, devices):
@@ -636,6 +639,12 @@ def _RunMonkeyTests(options, error_func, devices):
def _RunPerfTests(options, args, error_func):
"""Subcommand of RunTestsCommands which runs perf tests."""
perf_options = ProcessPerfTestOptions(options, args, error_func)
+
+ # Just save a simple json with a list of test names.
+ if perf_options.output_json_list:
+ return perf_test_runner.OutputJsonList(
+ perf_options.steps, perf_options.output_json_list)
+
# Just print the results from a single previously executed step.
if perf_options.print_step:
return perf_test_runner.PrintTestOutput(perf_options.print_step)
« no previous file with comments | « build/android/pylib/perf/test_runner.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698