Chromium Code Reviews| Index: build/android/buildbot/bb_device_steps.py |
| diff --git a/build/android/buildbot/bb_device_steps.py b/build/android/buildbot/bb_device_steps.py |
| index 820074977591e681ffb5e59379565b5b32cce946..e9670745d9c8b12b377fa52ebe6eb5a0716b14f2 100755 |
| --- a/build/android/buildbot/bb_device_steps.py |
| +++ b/build/android/buildbot/bb_device_steps.py |
| @@ -96,13 +96,17 @@ def _GetRevision(options): |
| return revision |
| -def RunTestSuites(options, suites): |
| +def RunTestSuites(options, suites, suites_options=None): |
| """Manages an invocation of test_runner.py for gtests. |
| Args: |
| options: options object. |
| suites: List of suite names to run. |
| """ |
| + |
| + if not suites_options: |
| + suites_options = {} |
| + |
| args = ['--verbose'] |
| if options.target == 'Release': |
| args.append('--release') |
| @@ -110,9 +114,11 @@ def RunTestSuites(options, suites): |
| args.append('--tool=asan') |
| if options.gtest_filter: |
| args.append('--gtest-filter=%s' % options.gtest_filter) |
| + |
| for suite in suites: |
| bb_annotations.PrintNamedStep(suite) |
| cmd = ['build/android/test_runner.py', 'gtest', '-s', suite] + args |
| + cmd += suites_options.get(suite, ()) |
|
bulach
2014/05/22 10:30:43
nit: since cmd is a list, maybe for consistency us
Kibeom Kim (inactive)
2014/05/22 17:12:33
Done.
|
| if suite == 'content_browsertests': |
| cmd.append('--num_retries=1') |
| RunCmd(cmd) |