| OLD | NEW |
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 import flakytests | 5 import flakytests |
| 6 | 6 |
| 7 from webkitpy.common.checkout.scm.scm_mock import MockSCM | |
| 8 from webkitpy.layout_tests.layout_package import bot_test_expectations | 7 from webkitpy.layout_tests.layout_package import bot_test_expectations |
| 9 from webkitpy.layout_tests.port import builders | 8 from webkitpy.layout_tests.port import builders |
| 10 from webkitpy.tool.commands.commandtest import CommandsTest | 9 from webkitpy.tool.commands.commandtest import CommandsTest |
| 11 from webkitpy.tool.mocktool import MockTool, MockOptions | 10 from webkitpy.tool.mocktool import MockTool, MockOptions |
| 12 | 11 |
| 13 class FakeBotTestExpectations(object): | 12 class FakeBotTestExpectations(object): |
| 14 def expectation_lines(self, only_ignore_very_flaky=False): | 13 def expectation_lines(self, only_ignore_very_flaky=False): |
| 15 return [] | 14 return [] |
| 16 | 15 |
| 17 | 16 |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 command = flakytests.FlakyTests() | 69 command = flakytests.FlakyTests() |
| 71 tool = MockTool() | 70 tool = MockTool() |
| 72 command.expectations_factory = FakeBotTestExpectationsFactory | 71 command.expectations_factory = FakeBotTestExpectationsFactory |
| 73 options = MockOptions(upload=True) | 72 options = MockOptions(upload=True) |
| 74 expected_stdout = flakytests.FlakyTests.OUTPUT % ( | 73 expected_stdout = flakytests.FlakyTests.OUTPUT % ( |
| 75 flakytests.FlakyTests.HEADER, | 74 flakytests.FlakyTests.HEADER, |
| 76 '', | 75 '', |
| 77 flakytests.FlakyTests.FLAKINESS_DASHBOARD_URL % '') + '\n' | 76 flakytests.FlakyTests.FLAKINESS_DASHBOARD_URL % '') + '\n' |
| 78 | 77 |
| 79 self.assert_execute_outputs(command, options=options, tool=tool, expecte
d_stdout=expected_stdout) | 78 self.assert_execute_outputs(command, options=options, tool=tool, expecte
d_stdout=expected_stdout) |
| OLD | NEW |