| 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 30 matching lines...) Expand all Loading... |
| 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 def main(argv, stdout, stderr): | 49 def main(argv, stdout, stderr): |
| 50 options, args = parse_args(argv) | 50 options, args = parse_args(argv) |
| 51 args = ['harness-tests/crash.html'] |
| 51 | 52 |
| 52 if options.platform and 'test' in options.platform and not 'browser_test' in
options.platform: | 53 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 | 54 # 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 | 55 # to run tests against the test platform interactively, which is useful
for |
| 55 # debugging test failures. | 56 # debugging test failures. |
| 56 from webkitpy.common.host_mock import MockHost | 57 from webkitpy.common.host_mock import MockHost |
| 57 host = MockHost() | 58 host = MockHost() |
| 58 else: | 59 else: |
| 59 host = Host() | 60 host = Host() |
| 60 | 61 |
| (...skipping 516 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 577 _log.debug("\t%s", process) | 578 _log.debug("\t%s", process) |
| 578 | 579 |
| 579 return run_details | 580 return run_details |
| 580 | 581 |
| 581 finally: | 582 finally: |
| 582 printer.cleanup() | 583 printer.cleanup() |
| 583 | 584 |
| 584 if __name__ == '__main__': | 585 if __name__ == '__main__': |
| 585 exit_code = main(sys.argv[1:], sys.stdout, sys.stderr) | 586 exit_code = main(sys.argv[1:], sys.stdout, sys.stderr) |
| 586 sys.exit(exit_code) | 587 sys.exit(exit_code) |
| OLD | NEW |