OLD | NEW |
1 # Copyright 2016 The Chromium Authors. All rights reserved. | 1 # Copyright 2016 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 json | 5 import json |
6 import optparse | 6 import optparse |
7 | 7 |
8 from webkitpy.common.net.buildbot import Build | 8 from webkitpy.common.net.buildbot import Build |
9 from webkitpy.common.net.git_cl import GitCL | 9 from webkitpy.common.net.git_cl import GitCL |
10 from webkitpy.common.net.layouttestresults import LayoutTestResults | 10 from webkitpy.common.net.layout_test_results import LayoutTestResults |
11 from webkitpy.common.net.rietveld import Rietveld | 11 from webkitpy.common.net.rietveld import Rietveld |
12 from webkitpy.common.net.web_mock import MockWeb | 12 from webkitpy.common.net.web_mock import MockWeb |
13 from webkitpy.common.system.logtesting import LoggingTestCase | 13 from webkitpy.common.system.log_testing import LoggingTestCase |
14 from webkitpy.layout_tests.builder_list import BuilderList | 14 from webkitpy.layout_tests.builder_list import BuilderList |
15 from webkitpy.tool.commands.rebaseline_cl import RebaselineCL | 15 from webkitpy.tool.commands.rebaseline_cl import RebaselineCL |
16 from webkitpy.tool.commands.rebaseline_unittest import BaseTestCase | 16 from webkitpy.tool.commands.rebaseline_unittest import BaseTestCase |
17 | 17 |
18 | 18 |
19 class RebaselineCLTest(BaseTestCase, LoggingTestCase): | 19 class RebaselineCLTest(BaseTestCase, LoggingTestCase): |
20 command_constructor = RebaselineCL | 20 command_constructor = RebaselineCL |
21 | 21 |
22 def setUp(self): | 22 def setUp(self): |
23 BaseTestCase.setUp(self) | 23 BaseTestCase.setUp(self) |
(...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
292 | 292 |
293 def test_bails_when_one_build_is_missing_results(self): | 293 def test_bails_when_one_build_is_missing_results(self): |
294 self.tool.buildbot.set_results(Build("MOCK Try Win", 5000), None) | 294 self.tool.buildbot.set_results(Build("MOCK Try Win", 5000), None) |
295 self.command.execute(self.command_options(issue=11112222), [], self.tool
) | 295 self.command.execute(self.command_options(issue=11112222), [], self.tool
) |
296 self.assertLog([ | 296 self.assertLog([ |
297 'ERROR: Failed to fetch results from ' | 297 'ERROR: Failed to fetch results from ' |
298 '"https://storage.googleapis.com/chromium-layout-test-archives/MOCK_
Try_Win/5000/layout-test-results".\n' | 298 '"https://storage.googleapis.com/chromium-layout-test-archives/MOCK_
Try_Win/5000/layout-test-results".\n' |
299 'Try starting a new job for MOCK Try Win by running :\n' | 299 'Try starting a new job for MOCK Try Win by running :\n' |
300 ' git cl try -b MOCK Try Win\n' | 300 ' git cl try -b MOCK Try Win\n' |
301 ]) | 301 ]) |
OLD | NEW |