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

Side by Side Diff: Tools/Scripts/webkitpy/layout_tests/run_webkit_tests.py

Issue 1129173006: Enable slimming paint by default (for trybots only) (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fri Jun 19 16:39:28 PDT 2015 Created 5 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 | « Tools/Scripts/webkitpy/layout_tests/lint_test_expectations.py ('k') | sp/gen-auto-rebaseline » ('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 (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 29 matching lines...) Expand all
40 from webkitpy.layout_tests.port import configuration_options, platform_options 40 from webkitpy.layout_tests.port import configuration_options, platform_options
41 from webkitpy.layout_tests.views import buildbot_results 41 from webkitpy.layout_tests.views import buildbot_results
42 from webkitpy.layout_tests.views import printing 42 from webkitpy.layout_tests.views import printing
43 from webkitpy.layout_tests.generate_results_dashboard import DashBoardGenerator 43 from webkitpy.layout_tests.generate_results_dashboard import DashBoardGenerator
44 44
45 _log = logging.getLogger(__name__) 45 _log = logging.getLogger(__name__)
46 46
47 47
48 48
49 def main(argv, stdout, stderr): 49 def main(argv, stdout, stderr):
50 argv += [
51 '--exit-after-n-crashes-or-timeouts=1000',
52 '--additional-driver-flag=--enable-slimming-paint',
53 ]
54
50 options, args = parse_args(argv) 55 options, args = parse_args(argv)
51 56
52 if options.platform and 'test' in options.platform and not 'browser_test' in options.platform: 57 if options.platform and 'test' in options.platform and not 'browser_test' in options.platform:
53 # It's a bit lame to import mocks into real code, but this allows the us er 58 # It's a bit lame to import mocks into real code, but this allows the us er
54 # to run tests against the test platform interactively, which is useful for 59 # to run tests against the test platform interactively, which is useful for
55 # debugging test failures. 60 # debugging test failures.
56 from webkitpy.common.host_mock import MockHost 61 from webkitpy.common.host_mock import MockHost
57 host = MockHost() 62 host = MockHost()
58 else: 63 else:
59 host = Host() 64 host = Host()
60 65
61 try: 66 try:
62 port = host.port_factory.get(options.platform, options) 67 port = host.port_factory.get(options.platform, options)
68 # Search for virtual/slimmingpaint test expectations at first.
69 for baseline_path in port.default_baseline_search_path() + [port.layout_ tests_dir()]:
70 options.additional_platform_directory.append(host.filesystem.join(ba seline_path, 'virtual', 'slimmingpaint'))
71 _log.info('Baseline search path: ' + str(port.baseline_search_path()))
72
73 options.additional_expectations.append(host.filesystem.join(port.layout_ tests_dir(), 'SlimmingPaintExpectations'))
63 except NotImplementedError, e: 74 except NotImplementedError, e:
64 # FIXME: is this the best way to handle unsupported port names? 75 # FIXME: is this the best way to handle unsupported port names?
65 print >> stderr, str(e) 76 print >> stderr, str(e)
66 return test_run_results.UNEXPECTED_ERROR_EXIT_STATUS 77 return test_run_results.UNEXPECTED_ERROR_EXIT_STATUS
67 78
68 try: 79 try:
69 run_details = run(port, options, args, stderr) 80 run_details = run(port, options, args, stderr)
70 if ((run_details.exit_code not in test_run_results.ERROR_CODES or 81 if ((run_details.exit_code not in test_run_results.ERROR_CODES or
71 run_details.exit_code == test_run_results.EARLY_EXIT_STATUS) and 82 run_details.exit_code == test_run_results.EARLY_EXIT_STATUS) and
72 not run_details.initial_results.keyboard_interrupted): 83 not run_details.initial_results.keyboard_interrupted):
(...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after
369 printer.print_config(port.results_directory()) 380 printer.print_config(port.results_directory())
370 381
371 run_details = manager.run(args) 382 run_details = manager.run(args)
372 _log.debug("Testing completed, Exit status: %d" % run_details.exit_code) 383 _log.debug("Testing completed, Exit status: %d" % run_details.exit_code)
373 return run_details 384 return run_details
374 finally: 385 finally:
375 printer.cleanup() 386 printer.cleanup()
376 387
377 if __name__ == '__main__': 388 if __name__ == '__main__':
378 sys.exit(main(sys.argv[1:], sys.stdout, sys.stderr)) 389 sys.exit(main(sys.argv[1:], sys.stdout, sys.stderr))
OLDNEW
« no previous file with comments | « Tools/Scripts/webkitpy/layout_tests/lint_test_expectations.py ('k') | sp/gen-auto-rebaseline » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698