| 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 16 matching lines...) Expand all Loading... |
| 27 # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 27 # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 28 # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 28 # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 29 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 29 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 30 | 30 |
| 31 import logging | 31 import logging |
| 32 import optparse | 32 import optparse |
| 33 import sys | 33 import sys |
| 34 import traceback | 34 import traceback |
| 35 | 35 |
| 36 from webkitpy.common.host import Host | 36 from webkitpy.common.host import Host |
| 37 from webkitpy.common.system.executive import Executive | |
| 38 from webkitpy.layout_tests.controllers.manager import Manager | 37 from webkitpy.layout_tests.controllers.manager import Manager |
| 38 from webkitpy.layout_tests.generate_results_dashboard import DashBoardGenerator |
| 39 from webkitpy.layout_tests.models import test_run_results | 39 from webkitpy.layout_tests.models import test_run_results |
| 40 from webkitpy.layout_tests.port.factory import configuration_options, platform_o
ptions | 40 from webkitpy.layout_tests.port.factory import configuration_options, platform_o
ptions |
| 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 | |
| 44 | 43 |
| 45 _log = logging.getLogger(__name__) | 44 _log = logging.getLogger(__name__) |
| 46 | 45 |
| 47 | 46 |
| 48 def main(argv, stdout, stderr): | 47 def main(argv, stdout, stderr): |
| 49 options, args = parse_args(argv) | 48 options, args = parse_args(argv) |
| 50 | 49 |
| 51 if options.platform and 'test' in options.platform and not 'browser_test' in
options.platform: | 50 if options.platform and 'test' in options.platform and not 'browser_test' in
options.platform: |
| 52 # It's a bit lame to import mocks into real code, but this allows the us
er | 51 # It's a bit lame to import mocks into real code, but this allows the us
er |
| 53 # to run tests against the test platform interactively, which is useful
for | 52 # to run tests against the test platform interactively, which is useful
for |
| (...skipping 534 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 588 _log.debug("\t%s", process) | 587 _log.debug("\t%s", process) |
| 589 | 588 |
| 590 return run_details | 589 return run_details |
| 591 | 590 |
| 592 finally: | 591 finally: |
| 593 printer.cleanup() | 592 printer.cleanup() |
| 594 | 593 |
| 595 if __name__ == '__main__': | 594 if __name__ == '__main__': |
| 596 exit_code = main(sys.argv[1:], sys.stdout, sys.stderr) | 595 exit_code = main(sys.argv[1:], sys.stdout, sys.stderr) |
| 597 sys.exit(exit_code) | 596 sys.exit(exit_code) |
| OLD | NEW |