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

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

Issue 319423002: Fix run_webkit_tests.py --lint-test-files after r175748 (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 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
« 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 # 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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 if options.platform and 'test' in options.platform: 52 if options.platform and 'test' in options.platform:
53 # 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
54 # 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
55 # debugging test failures. 55 # debugging test failures.
56 from webkitpy.common.host_mock import MockHost 56 from webkitpy.common.host_mock import MockHost
57 host = MockHost() 57 host = MockHost()
58 else: 58 else:
59 host = Host() 59 host = Host()
60 60
61 if options.lint_test_files: 61 if options.lint_test_files:
62 from webkitpy.layout_tests.lint_test_expectations import lint 62 from webkitpy.layout_tests.lint_test_expectations import run_checks
63 return lint(host, options, stderr) 63 return run_checks(host, options, stderr)
64 64
65 try: 65 try:
66 port = host.port_factory.get(options.platform, options) 66 port = host.port_factory.get(options.platform, options)
67 except NotImplementedError, e: 67 except NotImplementedError, e:
68 # FIXME: is this the best way to handle unsupported port names? 68 # FIXME: is this the best way to handle unsupported port names?
69 print >> stderr, str(e) 69 print >> stderr, str(e)
70 return test_run_results.UNEXPECTED_ERROR_EXIT_STATUS 70 return test_run_results.UNEXPECTED_ERROR_EXIT_STATUS
71 71
72 try: 72 try:
73 run_details = run(port, options, args, stderr) 73 run_details = run(port, options, args, stderr)
(...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after
375 printer.print_config(port.results_directory()) 375 printer.print_config(port.results_directory())
376 376
377 run_details = manager.run(args) 377 run_details = manager.run(args)
378 _log.debug("Testing completed, Exit status: %d" % run_details.exit_code) 378 _log.debug("Testing completed, Exit status: %d" % run_details.exit_code)
379 return run_details 379 return run_details
380 finally: 380 finally:
381 printer.cleanup() 381 printer.cleanup()
382 382
383 if __name__ == '__main__': 383 if __name__ == '__main__':
384 sys.exit(main(sys.argv[1:], sys.stdout, sys.stderr)) 384 sys.exit(main(sys.argv[1:], sys.stdout, sys.stderr))
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