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

Side by Side Diff: scripts/slave/recipe_modules/chromium_android/example.py

Issue 1511403002: Revert "[Android] Add context manager to record logcat during step(s)." (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/build
Patch Set: Created 5 years 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 160
161 try: 161 try:
162 if config.get('perf_config'): 162 if config.get('perf_config'):
163 api.chromium_android.run_sharded_perf_tests( 163 api.chromium_android.run_sharded_perf_tests(
164 config='fake_config.json', 164 config='fake_config.json',
165 flaky_config='flake_fakes.json', 165 flaky_config='flake_fakes.json',
166 upload_archives_to_bucket='archives-bucket') 166 upload_archives_to_bucket='archives-bucket')
167 except api.step.StepFailure as f: 167 except api.step.StepFailure as f:
168 failure = f 168 failure = f
169 169
170 with api.chromium_android.logcat('AndroidWebViewTest'): 170 api.chromium_android.run_instrumentation_suite(
171 api.chromium_android.run_instrumentation_suite( 171 name='AndroidWebViewTest',
172 name='AndroidWebViewTest', 172 apk_under_test=api.chromium_android.apk_path('AndroidWebView.apk'),
173 apk_under_test=api.chromium_android.apk_path('AndroidWebView.apk'), 173 test_apk=api.chromium_android.apk_path('AndroidWebViewTest.apk'),
174 test_apk=api.chromium_android.apk_path('AndroidWebViewTest.apk'), 174 isolate_file_path='android_webview/android_webview_test_apk.isolate',
175 isolate_file_path='android_webview/android_webview_test_apk.isolate', 175 flakiness_dashboard='test-results.appspot.com',
176 flakiness_dashboard='test-results.appspot.com', 176 annotation='SmallTest',
177 annotation='SmallTest', 177 except_annotation='FlakyTest',
178 except_annotation='FlakyTest', 178 screenshot=True,
179 screenshot=True, 179 official_build=True,
180 official_build=True, 180 host_driven_root=api.path['checkout'].join('chrome', 'test'),
181 host_driven_root=api.path['checkout'].join('chrome', 'test'), 181 timeout_scale=config.get('timeout_scale'))
182 timeout_scale=config.get('timeout_scale')) 182 api.chromium_android.run_test_suite(
183 with api.chromium_android.logcat('unittests'): 183 'unittests',
184 api.chromium_android.run_test_suite( 184 isolate_file_path=api.path['checkout'].join('some_file.isolate'),
185 'unittests', 185 gtest_filter='WebRtc*',
186 isolate_file_path=api.path['checkout'].join('some_file.isolate'), 186 tool='asan')
187 gtest_filter='WebRtc*',
188 tool='asan')
189
190 if not failure: 187 if not failure:
191 api.chromium_android.run_bisect_script(extra_src='test.py', 188 api.chromium_android.run_bisect_script(extra_src='test.py',
192 path_to_config='test.py') 189 path_to_config='test.py')
193 190 api.chromium_android.logcat_dump()
194 logcat_file = api.chromium.output_dir.join('full_logcat') 191 api.chromium_android.stack_tool_steps()
195 api.chromium_android.logcat_dump(output_logcat_file=logcat_file)
196 api.chromium_android.stack_tool_steps(logcat_file=logcat_file)
197 if config.get('coverage', False): 192 if config.get('coverage', False):
198 api.chromium_android.coverage_report() 193 api.chromium_android.coverage_report()
199 194
200 if failure: 195 if failure:
201 raise failure 196 raise failure
202 197
203 def GenTests(api): 198 def GenTests(api):
204 def properties_for(buildername): 199 def properties_for(buildername):
205 return api.properties.generic( 200 return api.properties.generic(
206 buildername=buildername, 201 buildername=buildername,
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
238 233
239 yield (api.test('gerrit_refs') + 234 yield (api.test('gerrit_refs') +
240 api.properties.generic( 235 api.properties.generic(
241 buildername='gerrit_try_builder', 236 buildername='gerrit_try_builder',
242 slavename='testslave', 237 slavename='testslave',
243 repo_name='src/repo', 238 repo_name='src/repo',
244 patch_url='https://the.patch.url/the.patch', 239 patch_url='https://the.patch.url/the.patch',
245 repo_url='svn://svn.chromium.org/chrome/trunk/src', 240 repo_url='svn://svn.chromium.org/chrome/trunk/src',
246 revision='4f4b02f6b7fa20a3a25682c457bbc8ad589c8a00', 241 revision='4f4b02f6b7fa20a3a25682c457bbc8ad589c8a00',
247 internal=True, **({'event.patchSet.ref':'refs/changes/50/176150/1'}))) 242 internal=True, **({'event.patchSet.ref':'refs/changes/50/176150/1'})))
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698