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: third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/run_webkit_tests.py

Issue 1783073002: Run auto-formatter on files in webkitpy/layout_tests/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased 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
OLDNEW
1 # Copyright (C) 2010 Google Inc. All rights reserved. 1 # Copyright (C) 2010 Google Inc. All rights reserved.
2 # Copyright (C) 2010 Gabor Rapcsanyi (rgabor@inf.u-szeged.hu), University of Sze ged 2 # Copyright (C) 2010 Gabor Rapcsanyi (rgabor@inf.u-szeged.hu), University of Sze ged
3 # Copyright (C) 2011 Apple Inc. All rights reserved. 3 # Copyright (C) 2011 Apple Inc. All rights reserved.
4 # 4 #
5 # Redistribution and use in source and binary forms, with or without 5 # Redistribution and use in source and binary forms, with or without
6 # modification, are permitted provided that the following conditions are 6 # modification, are permitted provided that the following conditions are
7 # met: 7 # met:
8 # 8 #
9 # * Redistributions of source code must retain the above copyright 9 # * Redistributions of source code must retain the above copyright
10 # notice, this list of conditions and the following disclaimer. 10 # notice, this list of conditions and the following disclaimer.
(...skipping 28 matching lines...) Expand all
39 from webkitpy.layout_tests.controllers.manager import Manager 39 from webkitpy.layout_tests.controllers.manager import Manager
40 from webkitpy.layout_tests.models import test_run_results 40 from webkitpy.layout_tests.models import test_run_results
41 from webkitpy.layout_tests.port.factory import configuration_options, platform_o ptions 41 from webkitpy.layout_tests.port.factory import configuration_options, platform_o ptions
42 from webkitpy.layout_tests.views import buildbot_results 42 from webkitpy.layout_tests.views import buildbot_results
43 from webkitpy.layout_tests.views import printing 43 from webkitpy.layout_tests.views import printing
44 from webkitpy.layout_tests.generate_results_dashboard import DashBoardGenerator 44 from webkitpy.layout_tests.generate_results_dashboard import DashBoardGenerator
45 45
46 _log = logging.getLogger(__name__) 46 _log = logging.getLogger(__name__)
47 47
48 48
49
50 def main(argv, stdout, stderr): 49 def main(argv, stdout, stderr):
51 options, args = parse_args(argv) 50 options, args = parse_args(argv)
52 51
53 if options.platform and 'test' in options.platform and not 'browser_test' in options.platform: 52 if options.platform and 'test' in options.platform and not 'browser_test' in options.platform:
54 # It's a bit lame to import mocks into real code, but this allows the us er 53 # It's a bit lame to import mocks into real code, but this allows the us er
55 # to run tests against the test platform interactively, which is useful for 54 # to run tests against the test platform interactively, which is useful for
56 # debugging test failures. 55 # debugging test failures.
57 from webkitpy.common.host_mock import MockHost 56 from webkitpy.common.host_mock import MockHost
58 host = MockHost() 57 host = MockHost()
59 else: 58 else:
(...skipping 513 matching lines...) Expand 10 before | Expand all | Expand 10 after
573 _log.debug("\t%s" % process) 572 _log.debug("\t%s" % process)
574 573
575 return run_details 574 return run_details
576 575
577 finally: 576 finally:
578 printer.cleanup() 577 printer.cleanup()
579 578
580 if __name__ == '__main__': 579 if __name__ == '__main__':
581 exit_code = main(sys.argv[1:], sys.stdout, sys.stderr) 580 exit_code = main(sys.argv[1:], sys.stdout, sys.stderr)
582 sys.exit(exit_code) 581 sys.exit(exit_code)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698