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

Unified Diff: build/android/test_runner.py

Issue 839143002: Roll Chrome into Mojo. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Rebase Created 5 years, 11 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/utils/zip_utils.py ('k') | build/android_sdk_extras.json » ('j') | 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 657e7c2152a6d77ad213936d6b0931811eef0d95..c1fb450b9071cb8234e5a9515d4ccd266d940223 100755
--- a/build/android/test_runner.py
+++ b/build/android/test_runner.py
@@ -128,9 +128,9 @@ def AddRemoteDeviceOptions(parser):
group.add_argument('--collect', default='',
help=('Only collects the test results if set. '
'Gets test_run_id from given file path.'))
- group.add_argument('--remote-device', default='Nexus 5',
+ group.add_argument('--remote-device', default='',
help=('Device type to run test on.'))
- group.add_argument('--remote-device-os', default='4.4.2',
+ group.add_argument('--remote-device-os', default='',
help=('OS to have on the device.'))
group.add_argument('--results-path', default='',
help=('File path to download results to.'))
@@ -247,6 +247,10 @@ def AddJavaTestOptions(argument_group):
'should be of the form <target>:<source>, <target> is relative to '
'the device data directory, and <source> is relative to the '
'chromium build directory.'))
+ argument_group.add_argument(
+ '--disable-dalvik-asserts', dest='set_asserts', action='store_false',
+ default=True, help='Removes the dalvik.vm.enableassertions property')
+
def ProcessJavaTestOptions(args):
@@ -356,7 +360,8 @@ def ProcessInstrumentationOptions(args):
args.test_runner,
args.test_support_apk_path,
args.device_flags,
- args.isolate_file_path
+ args.isolate_file_path,
+ args.set_asserts
)
@@ -414,7 +419,8 @@ def ProcessUIAutomatorOptions(args):
args.screenshot_failures,
args.uiautomator_jar,
args.uiautomator_info_jar,
- args.package)
+ args.package,
+ args.set_asserts)
def AddJUnitTestOptions(parser):
@@ -767,13 +773,10 @@ def _RunPerfTests(args):
return perf_test_runner.OutputJsonList(
perf_options.steps, perf_options.output_json_list)
- if perf_options.output_chartjson_data:
- return perf_test_runner.OutputChartjson(
- perf_options.print_step, perf_options.output_chartjson_data)
-
# Just print the results from a single previously executed step.
if perf_options.print_step:
- return perf_test_runner.PrintTestOutput(perf_options.print_step)
+ return perf_test_runner.PrintTestOutput(
+ perf_options.print_step, perf_options.output_chartjson_data)
runner_factory, tests, devices = perf_setup.Setup(perf_options)
« no previous file with comments | « build/android/pylib/utils/zip_utils.py ('k') | build/android_sdk_extras.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698