OLD | NEW |
---|---|
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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
42 from webkitpy.layout_tests.views import printing | 42 from webkitpy.layout_tests.views import printing |
43 | 43 |
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 options, args = parse_args(argv) | 50 options, args = parse_args(argv) |
51 | 51 |
52 if options.platform and 'test' in options.platform: | 52 if options.platform and 'test' in options.platform and not 'browser_test' in options.platform: |
ivandavid
2014/07/10 22:39:09
Without this addition to the conditional, the fram
| |
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 run_checks | 62 from webkitpy.layout_tests.lint_test_expectations import run_checks |
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
256 optparse.make_option("--disable-breakpad", action="store_true", | 256 optparse.make_option("--disable-breakpad", action="store_true", |
257 help="Don't use breakpad to symbolize unexpected crashes."), | 257 help="Don't use breakpad to symbolize unexpected crashes."), |
258 optparse.make_option("--use-apache", action="store_true", | 258 optparse.make_option("--use-apache", action="store_true", |
259 help="Use Apache instead of LigHTTPd (default is port-specific)."), | 259 help="Use Apache instead of LigHTTPd (default is port-specific)."), |
260 optparse.make_option("--no-use-apache", action="store_false", dest="use_ apache", | 260 optparse.make_option("--no-use-apache", action="store_false", dest="use_ apache", |
261 help="Use LigHTTPd instead of Apache (default is port-specific)."), | 261 help="Use LigHTTPd instead of Apache (default is port-specific)."), |
262 optparse.make_option("--enable-leak-detection", action="store_true", | 262 optparse.make_option("--enable-leak-detection", action="store_true", |
263 help="Enable the leak detection of DOM objects."), | 263 help="Enable the leak detection of DOM objects."), |
264 optparse.make_option("--enable-sanitizer", action="store_true", | 264 optparse.make_option("--enable-sanitizer", action="store_true", |
265 help="Only alert on sanitizer-related errors and crashes"), | 265 help="Only alert on sanitizer-related errors and crashes"), |
266 optparse.make_option("--driver_name"), | |
Dirk Pranke
2014/07/10 23:37:13
--driver-name exists already on line 149. Presumab
ivandavid
2014/07/16 21:29:01
Oops. I was always using underscore rather than da
ivandavid
2014/07/16 21:29:01
Done.
| |
266 ])) | 267 ])) |
267 | 268 |
268 option_group_definitions.append(("Miscellaneous Options", [ | 269 option_group_definitions.append(("Miscellaneous Options", [ |
269 optparse.make_option("--lint-test-files", action="store_true", | 270 optparse.make_option("--lint-test-files", action="store_true", |
270 default=False, help=("Makes sure the test files parse for all " | 271 default=False, help=("Makes sure the test files parse for all " |
271 "configurations. Does not run any tests.")), | 272 "configurations. Does not run any tests.")), |
272 ])) | 273 ])) |
273 | 274 |
274 # FIXME: Move these into json_results_generator.py | 275 # FIXME: Move these into json_results_generator.py |
275 option_group_definitions.append(("Result JSON Options", [ | 276 option_group_definitions.append(("Result JSON Options", [ |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
375 printer.print_config(port.results_directory()) | 376 printer.print_config(port.results_directory()) |
376 | 377 |
377 run_details = manager.run(args) | 378 run_details = manager.run(args) |
378 _log.debug("Testing completed, Exit status: %d" % run_details.exit_code) | 379 _log.debug("Testing completed, Exit status: %d" % run_details.exit_code) |
379 return run_details | 380 return run_details |
380 finally: | 381 finally: |
381 printer.cleanup() | 382 printer.cleanup() |
382 | 383 |
383 if __name__ == '__main__': | 384 if __name__ == '__main__': |
384 sys.exit(main(sys.argv[1:], sys.stdout, sys.stderr)) | 385 sys.exit(main(sys.argv[1:], sys.stdout, sys.stderr)) |
OLD | NEW |