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

Side by Side Diff: chrome/test/chromedriver/run_py_tests.py

Issue 13493014: [chromedriver] Disable failed tests on bots. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 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 | chrome/test/chromedriver/test_expectations » ('j') | 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 (c) 2012 The Chromium Authors. All rights reserved. 2 # Copyright (c) 2012 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 """End to end tests for ChromeDriver.""" 6 """End to end tests for ChromeDriver."""
7 7
8 import base64 8 import base64
9 import optparse 9 import optparse
10 import os 10 import os
(...skipping 28 matching lines...) Expand all
39 _DESKTOP_OS_SPECIFIC_FILTER = [ 39 _DESKTOP_OS_SPECIFIC_FILTER = [
40 # https://code.google.com/p/chromedriver/issues/detail?id=214 40 # https://code.google.com/p/chromedriver/issues/detail?id=214
41 'ChromeDriverTest.testCloseWindow', 41 'ChromeDriverTest.testCloseWindow',
42 # https://code.google.com/p/chromedriver/issues/detail?id=299 42 # https://code.google.com/p/chromedriver/issues/detail?id=299
43 'ChromeLogPathCapabilityTest.testChromeLogPath', 43 'ChromeLogPathCapabilityTest.testChromeLogPath',
44 ] 44 ]
45 elif util.IsLinux(): 45 elif util.IsLinux():
46 _DESKTOP_OS_SPECIFIC_FILTER = [ 46 _DESKTOP_OS_SPECIFIC_FILTER = [
47 # Xvfb doesn't support maximization. 47 # Xvfb doesn't support maximization.
48 'ChromeDriverTest.testWindowMaximize', 48 'ChromeDriverTest.testWindowMaximize',
49 # https://code.google.com/p/chromedriver/issues/detail?id=302
50 'ChromeDriverTest.testWindowPosition',
51 'ChromeDriverTest.testWindowSize',
49 ] 52 ]
50 53
51 54
52 _DESKTOP_NEGATIVE_FILTER = {} 55 _DESKTOP_NEGATIVE_FILTER = {}
53 _DESKTOP_NEGATIVE_FILTER['HEAD'] = ( 56 _DESKTOP_NEGATIVE_FILTER['HEAD'] = (
54 _DESKTOP_OS_SPECIFIC_FILTER + [ 57 _DESKTOP_OS_SPECIFIC_FILTER + [
55 # https://code.google.com/p/chromedriver/issues/detail?id=213 58 # https://code.google.com/p/chromedriver/issues/detail?id=213
56 'ChromeDriverTest.testClickElementInSubFrame', 59 'ChromeDriverTest.testClickElementInSubFrame',
57 # This test is flaky since it uses setTimeout. 60 # This test is flaky since it uses setTimeout.
58 # Re-enable once crbug.com/177511 is fixed and we can remove setTimeout. 61 # Re-enable once crbug.com/177511 is fixed and we can remove setTimeout.
(...skipping 566 matching lines...) Expand 10 before | Expand all | Expand 10 after
625 negative_filter = _DESKTOP_NEGATIVE_FILTER[options.chrome_version] 628 negative_filter = _DESKTOP_NEGATIVE_FILTER[options.chrome_version]
626 options.filter = '*-' + ':__main__.'.join([''] + negative_filter) 629 options.filter = '*-' + ':__main__.'.join([''] + negative_filter)
627 630
628 all_tests_suite = unittest.defaultTestLoader.loadTestsFromModule( 631 all_tests_suite = unittest.defaultTestLoader.loadTestsFromModule(
629 sys.modules[__name__]) 632 sys.modules[__name__])
630 tests = unittest_util.FilterTestSuite(all_tests_suite, options.filter) 633 tests = unittest_util.FilterTestSuite(all_tests_suite, options.filter)
631 ChromeDriverTest.GlobalSetUp() 634 ChromeDriverTest.GlobalSetUp()
632 result = unittest.TextTestRunner(stream=sys.stdout, verbosity=2).run(tests) 635 result = unittest.TextTestRunner(stream=sys.stdout, verbosity=2).run(tests)
633 ChromeDriverTest.GlobalTearDown() 636 ChromeDriverTest.GlobalTearDown()
634 sys.exit(len(result.failures) + len(result.errors)) 637 sys.exit(len(result.failures) + len(result.errors))
OLDNEW
« no previous file with comments | « no previous file | chrome/test/chromedriver/test_expectations » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698