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

Side by Side Diff: scripts/slave/recipes/flutter/flutter.py

Issue 1773623003: [driver] output verbose logging from flutter driver (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/build.git@master
Patch Set: remove intentional error Created 4 years, 9 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 unified diff | Download patch
« no previous file with comments | « no previous file | scripts/slave/recipes/flutter/flutter.expected/mac.json » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2016 The Chromium Authors. All rights reserved. 1 # Copyright 2016 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 import contextlib 5 import contextlib
6 6
7 DEPS = [ 7 DEPS = [
8 'depot_tools/git', 8 'depot_tools/git',
9 'file', 9 'file',
10 'gsutil', 10 'gsutil',
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 _pub_test('packages/flx') 54 _pub_test('packages/flx')
55 _pub_test('packages/newton') 55 _pub_test('packages/newton')
56 56
57 _flutter_test('examples/stocks') 57 _flutter_test('examples/stocks')
58 58
59 def TestCreateAndLaunch(api): 59 def TestCreateAndLaunch(api):
60 with MakeTempDir(api) as temp_dir: 60 with MakeTempDir(api) as temp_dir:
61 api.step('test create', ['flutter', 'create', '--with-driver-test', 61 api.step('test create', ['flutter', 'create', '--with-driver-test',
62 'sample_app'], cwd=temp_dir) 62 'sample_app'], cwd=temp_dir)
63 app_path = temp_dir.join('sample_app') 63 app_path = temp_dir.join('sample_app')
64 api.step('drive sample_app', ['flutter', 'drive'], cwd=app_path) 64 api.step('drive sample_app', ['flutter', 'drive', '--verbose'],
65 cwd=app_path, ok_ret=(0, 1))
65 66
66 # TODO(eseidel): Would be nice to have this on api.path or api.file. 67 # TODO(eseidel): Would be nice to have this on api.path or api.file.
67 @contextlib.contextmanager 68 @contextlib.contextmanager
68 def MakeTempDir(api): 69 def MakeTempDir(api):
69 try: 70 try:
70 temp_dir = api.path.mkdtemp('tmp') 71 temp_dir = api.path.mkdtemp('tmp')
71 yield temp_dir 72 yield temp_dir
72 finally: 73 finally:
73 api.file.rmtree('temp dir', temp_dir) 74 api.file.rmtree('temp dir', temp_dir)
74 75
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
233 yield test 234 yield test
234 235
235 yield ( 236 yield (
236 api.test('mac_cannot_find_xcode') + 237 api.test('mac_cannot_find_xcode') +
237 api.platform('mac', 64) + 238 api.platform('mac', 64) +
238 api.properties(clobber='') + 239 api.properties(clobber='') +
239 api.step_data('enumerate_xcode_installations', api.json.output({ 240 api.step_data('enumerate_xcode_installations', api.json.output({
240 'installations': {} 241 'installations': {}
241 })) 242 }))
242 ) 243 )
OLDNEW
« no previous file with comments | « no previous file | scripts/slave/recipes/flutter/flutter.expected/mac.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698