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

Unified Diff: third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/bisect_test_ordering.py

Issue 1806393002: Run yapf on files in webkit/layout_tests/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/breakpad/dump_reader.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/bisect_test_ordering.py
diff --git a/third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/bisect_test_ordering.py b/third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/bisect_test_ordering.py
index a10ed15fa9a4287787d74e0c390284b08829d435..74248c0ed85d684f4d4420161af35504d15f3983 100644
--- a/third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/bisect_test_ordering.py
+++ b/third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/bisect_test_ordering.py
@@ -49,7 +49,6 @@ class Bucket(object):
class Bisector(object):
-
def __init__(self, tests, is_debug):
self.executive = Executive()
self.tests = tests
@@ -147,7 +146,11 @@ class Bisector(object):
def test_fails(self, tests):
extra_args = ['--debug'] if self.is_debug else []
path_to_run_webkit_tests = self.webkit_finder.path_from_webkit_base('Tools', 'Scripts', 'run-webkit-tests')
- output = self.executive.popen([path_to_run_webkit_tests, '--child-processes', '1', '--order', 'none', '--no-retry', '--no-show-results', '--verbose'] + extra_args + tests, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
+ output = self.executive.popen(
+ [path_to_run_webkit_tests, '--child-processes', '1', '--order', 'none', '--no-retry', '--no-show-results', '--verbose'
+ ] + extra_args + tests,
+ stdout=subprocess.PIPE,
+ stderr=subprocess.PIPE)
failure_string = self.expected_failure + ' failed'
if failure_string in output.stderr.read():
return True
@@ -158,7 +161,10 @@ def main(argv):
logging.basicConfig()
option_parser = optparse.OptionParser()
- option_parser.add_option('--test-list', action='store', help='file that list tests to bisect. The last test in the list is the expected failure.', metavar='FILE'),
+ option_parser.add_option('--test-list',
+ action='store',
+ help='file that list tests to bisect. The last test in the list is the expected failure.',
+ metavar='FILE'),
option_parser.add_option('--debug', action='store_true', default=False, help='whether to use a debug build'),
options, args = option_parser.parse_args(argv)
@@ -166,5 +172,6 @@ def main(argv):
bisector = Bisector(tests, is_debug=options.debug)
return bisector.bisect()
+
if __name__ == '__main__':
sys.exit(main(sys.argv[1:]))
« no previous file with comments | « no previous file | third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/breakpad/dump_reader.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698