OLD | NEW |
1 # Copyright (c) 2011 Google Inc. All rights reserved. | 1 # Copyright (c) 2011 Google Inc. All rights reserved. |
2 # | 2 # |
3 # Redistribution and use in source and binary forms, with or without | 3 # Redistribution and use in source and binary forms, with or without |
4 # modification, are permitted provided that the following conditions are | 4 # modification, are permitted provided that the following conditions are |
5 # met: | 5 # met: |
6 # | 6 # |
7 # * Redistributions of source code must retain the above copyright | 7 # * Redistributions of source code must retain the above copyright |
8 # notice, this list of conditions and the following disclaimer. | 8 # notice, this list of conditions and the following disclaimer. |
9 # * Redistributions in binary form must reproduce the above | 9 # * Redistributions in binary form must reproduce the above |
10 # copyright notice, this list of conditions and the following disclaimer | 10 # copyright notice, this list of conditions and the following disclaimer |
(...skipping 16 matching lines...) Expand all Loading... |
27 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 27 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
28 | 28 |
29 from webkitpy.tool.multicommandtool import AbstractDeclarativeCommand | 29 from webkitpy.tool.multicommandtool import AbstractDeclarativeCommand |
30 from webkitpy.layout_tests.layout_package.bot_test_expectations import BotTestEx
pectationsFactory | 30 from webkitpy.layout_tests.layout_package.bot_test_expectations import BotTestEx
pectationsFactory |
31 from webkitpy.layout_tests.models.test_expectations import TestExpectationParser
, TestExpectationsModel, TestExpectations | 31 from webkitpy.layout_tests.models.test_expectations import TestExpectationParser
, TestExpectationsModel, TestExpectations |
32 | 32 |
33 | 33 |
34 class FlakyTests(AbstractDeclarativeCommand): | 34 class FlakyTests(AbstractDeclarativeCommand): |
35 name = "flaky-tests" | 35 name = "flaky-tests" |
36 help_text = "Generate FlakyTests file from the flakiness dashboard" | 36 help_text = "Generate FlakyTests file from the flakiness dashboard" |
| 37 show_in_main_help = True |
37 | 38 |
38 def execute(self, options, args, tool): | 39 def execute(self, options, args, tool): |
39 port = tool.port_factory.get() | 40 port = tool.port_factory.get() |
40 full_port_name = port.determine_full_port_name(tool, options, port.port_
name) | 41 full_port_name = port.determine_full_port_name(tool, options, port.port_
name) |
41 expectations = BotTestExpectationsFactory().expectations_for_port(full_p
ort_name) | 42 expectations = BotTestExpectationsFactory().expectations_for_port(full_p
ort_name) |
42 print TestExpectations.list_to_string(expectations.expectation_lines()) | 43 print TestExpectations.list_to_string(expectations.expectation_lines()) |
OLD | NEW |