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

Side by Side Diff: chrome/test/pyautolib/pyauto.py

Issue 16206022: Skip hwid screen on cros VMs. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # Copyright 2013 The Chromium Authors. All rights reserved. 2 # Copyright 2013 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 """PyAuto: Python Interface to Chromium's Automation Proxy. 6 """PyAuto: Python Interface to Chromium's Automation Proxy.
7 7
8 PyAuto uses swig to expose Automation Proxy interfaces to Python. 8 PyAuto uses swig to expose Automation Proxy interfaces to Python.
9 For complete documentation on the functionality available, 9 For complete documentation on the functionality available,
10 run pydoc on this file. 10 run pydoc on this file.
(...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after
278 auth_ext_path = ('/usr/local/autotest/deps/pyauto_dep/' + 278 auth_ext_path = ('/usr/local/autotest/deps/pyauto_dep/' +
279 'test_src/chrome/browser/resources/gaia_auth') 279 'test_src/chrome/browser/resources/gaia_auth')
280 if self.IsChromeOS(): 280 if self.IsChromeOS():
281 return [ 281 return [
282 '--homepage=about:blank', 282 '--homepage=about:blank',
283 '--allow-file-access', 283 '--allow-file-access',
284 '--allow-file-access-from-files', 284 '--allow-file-access-from-files',
285 '--enable-file-cookies', 285 '--enable-file-cookies',
286 '--disable-default-apps', 286 '--disable-default-apps',
287 '--dom-automation', 287 '--dom-automation',
288 '--skip-oauth-login', 288 '--skip-hwid-check',
289 # Enables injection of test content script for webui login automation 289 # Enables injection of test content script for webui login automation
290 '--auth-ext-path=%s' % auth_ext_path, 290 '--auth-ext-path=%s' % auth_ext_path,
291 # Enable automation provider and chromeos net logs 291 # Enable automation provider and chromeos net logs
292 '--vmodule=*/browser/automation/*=2,*/chromeos/net/*=2', 292 '--vmodule=*/browser/automation/*=2,*/chromeos/net/*=2',
293 ] 293 ]
294 else: 294 else:
295 return [] 295 return []
296 296
297 def ShouldOOBESkipToLogin(self): 297 def ShouldOOBESkipToLogin(self):
298 """Determine if we should skip the OOBE flow on ChromeOS. 298 """Determine if we should skip the OOBE flow on ChromeOS.
(...skipping 5714 matching lines...) Expand 10 before | Expand all | Expand 10 after
6013 successful = result.wasSuccessful() 6013 successful = result.wasSuccessful()
6014 if not successful: 6014 if not successful:
6015 pyauto_tests_file = os.path.join(self.TestsDir(), self._tests_filename) 6015 pyauto_tests_file = os.path.join(self.TestsDir(), self._tests_filename)
6016 print >>sys.stderr, 'Tests can be disabled by editing %s. ' \ 6016 print >>sys.stderr, 'Tests can be disabled by editing %s. ' \
6017 'Ref: %s' % (pyauto_tests_file, _PYAUTO_DOC_URL) 6017 'Ref: %s' % (pyauto_tests_file, _PYAUTO_DOC_URL)
6018 sys.exit(not successful) 6018 sys.exit(not successful)
6019 6019
6020 6020
6021 if __name__ == '__main__': 6021 if __name__ == '__main__':
6022 Main() 6022 Main()
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698