Run android tests through runtest.py.

BUG=329102
R=qyearsley@chromium.org

Review URL: https://codereview.chromium.org/410033002

git-svn-id: http://src.chromium.org/svn/trunk/src/build@285667 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
This commit is contained in:
zty@chromium.org 2014-07-25 20:40:35 +00:00
Родитель 1288348f0b
Коммит 3057955ca4
1 изменённых файлов: 24 добавлений и 1 удалений

Просмотреть файл

@ -96,6 +96,29 @@ def _GetRevision(options):
return revision
def _RunTest(options, cmd, suite):
"""Run test command with runtest.py.
Args:
options: options object.
cmd: the command to run.
suite: test name.
"""
property_args = bb_utils.EncodeProperties(options)
args = [os.path.join(SLAVE_SCRIPTS_DIR, 'runtest.py'),
'--test-type',
suite,
'--run-python-script'
] + property_args
if options.factory_properties.get('generate_gtest_json'):
args.append('--generate-json-file')
if options.target == 'Release':
args += ['--target', 'Release']
args += cmd
RunCmd(args)
def RunTestSuites(options, suites, suites_options=None):
"""Manages an invocation of test_runner.py for gtests.
@ -125,7 +148,7 @@ def RunTestSuites(options, suites, suites_options=None):
cmd += suites_options.get(suite, [])
if suite == 'content_browsertests':
cmd.append('--num_retries=1')
RunCmd(cmd)
_RunTest(options, cmd, suite)
def RunChromeDriverTests(options):