Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 from recipe_engine.types import freeze | 5 from recipe_engine.types import freeze |
| 6 | 6 |
| 7 DEPS = [ | 7 DEPS = [ |
| 8 'adb', | 8 'adb', |
| 9 'chromium', | 9 'chromium', |
| 10 'chromium_android', | 10 'chromium_android', |
| (...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 174 official_build=True, | 174 official_build=True, |
| 175 host_driven_root=api.path['checkout'].join('chrome', 'test')) | 175 host_driven_root=api.path['checkout'].join('chrome', 'test')) |
| 176 api.chromium_android.run_test_suite( | 176 api.chromium_android.run_test_suite( |
| 177 'unittests', | 177 'unittests', |
| 178 isolate_file_path=api.path['checkout'].join('some_file.isolate'), | 178 isolate_file_path=api.path['checkout'].join('some_file.isolate'), |
| 179 gtest_filter='WebRtc*', | 179 gtest_filter='WebRtc*', |
| 180 tool='asan') | 180 tool='asan') |
| 181 if not failure: | 181 if not failure: |
| 182 api.chromium_android.run_bisect_script(extra_src='test.py', | 182 api.chromium_android.run_bisect_script(extra_src='test.py', |
| 183 path_to_config='test.py') | 183 path_to_config='test.py') |
| 184 api.chromium_android.logcat_dump() | 184 |
| 185 api.chromium_android.stack_tool_steps() | 185 logcat_file = api.chromium.output_dir.join('full_logcat') |
| 186 api.chromium_android.logcat_dump(output_logcat_file=logcat_file) | |
|
luqui
2015/11/23 22:59:40
Heck as long as you're here you might as well use
mikecase (-- gone --)
2015/11/24 20:50:59
Added an example of using the logcat context manag
| |
| 187 api.chromium_android.stack_tool_steps(logcat_file=logcat_file) | |
| 186 if config.get('coverage', False): | 188 if config.get('coverage', False): |
| 187 api.chromium_android.coverage_report() | 189 api.chromium_android.coverage_report() |
| 188 | 190 |
| 189 if failure: | 191 if failure: |
| 190 raise failure | 192 raise failure |
| 191 | 193 |
| 192 def GenTests(api): | 194 def GenTests(api): |
| 193 def properties_for(buildername): | 195 def properties_for(buildername): |
| 194 return api.properties.generic( | 196 return api.properties.generic( |
| 195 buildername=buildername, | 197 buildername=buildername, |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 227 | 229 |
| 228 yield (api.test('gerrit_refs') + | 230 yield (api.test('gerrit_refs') + |
| 229 api.properties.generic( | 231 api.properties.generic( |
| 230 buildername='gerrit_try_builder', | 232 buildername='gerrit_try_builder', |
| 231 slavename='testslave', | 233 slavename='testslave', |
| 232 repo_name='src/repo', | 234 repo_name='src/repo', |
| 233 patch_url='https://the.patch.url/the.patch', | 235 patch_url='https://the.patch.url/the.patch', |
| 234 repo_url='svn://svn.chromium.org/chrome/trunk/src', | 236 repo_url='svn://svn.chromium.org/chrome/trunk/src', |
| 235 revision='4f4b02f6b7fa20a3a25682c457bbc8ad589c8a00', | 237 revision='4f4b02f6b7fa20a3a25682c457bbc8ad589c8a00', |
| 236 internal=True, **({'event.patchSet.ref':'refs/changes/50/176150/1'}))) | 238 internal=True, **({'event.patchSet.ref':'refs/changes/50/176150/1'}))) |
| OLD | NEW |