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

Unified Diff: build/android/test_runner.py

Issue 407173002: Added an annotation to label Integration tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Test Runner changes for Integration tests. Created 6 years, 4 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/instrumentation/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 8aebb8b4b032335ebf32462563395a6945b77739..51eacdfe47184c260be2fa225d571604c516fd46 100755
--- a/build/android/test_runner.py
+++ b/build/android/test_runner.py
@@ -201,7 +201,7 @@ def ProcessJavaTestOptions(options):
options.annotations = []
else:
options.annotations = ['Smoke', 'SmallTest', 'MediumTest', 'LargeTest',
- 'EnormousTest']
+ 'EnormousTest', 'IntegrationTest']
if options.exclude_annotation_str:
options.exclude_annotations = options.exclude_annotation_str.split(',')
@@ -237,6 +237,9 @@ def AddInstrumentationTestOptions(option_parser):
option_parser.add_option('--coverage-dir',
help=('Directory in which to place all generated '
'EMMA coverage files.'))
+ option_parser.add_option('--device-flags', dest='device_flags', default='',
+ help='The relative filepath to a file containing '
+ 'command-line flags to set on the device')
def ProcessInstrumentationOptions(options, error_func):
@@ -299,7 +302,8 @@ def ProcessInstrumentationOptions(options, error_func):
options.test_apk_path,
options.test_apk_jar_path,
options.test_runner,
- options.test_support_apk_path
+ options.test_support_apk_path,
+ options.device_flags
)
@@ -597,6 +601,10 @@ def _RunInstrumentationTests(options, error_func, devices):
if test_exit_code and exit_code != constants.ERROR_EXIT_CODE:
exit_code = test_exit_code
+ if options.device_flags:
+ options.device_flags = '%s/%s' % (constants.DIR_SOURCE_ROOT,
+ options.device_flags)
+
report_results.LogFull(
results=results,
test_type='Instrumentation',
« no previous file with comments | « build/android/pylib/instrumentation/test_runner.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698