| 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 optparse | 5 import optparse |
| 6 import unittest | 6 import unittest |
| 7 | 7 |
| 8 from webkitpy.common.net.buildbot import Build | 8 from webkitpy.common.net.buildbot import Build |
| 9 from webkitpy.common.net.layouttestresults import LayoutTestResults | 9 from webkitpy.common.net.layouttestresults import LayoutTestResults |
| 10 from webkitpy.common.net.rietveld import Build | 10 from webkitpy.common.system.executive_mock import MockExecutive, MockExecutive2 |
| 11 from webkitpy.common.system.executive_mock import MockExecutive | |
| 12 from webkitpy.common.system.executive_mock import MockExecutive2 | |
| 13 from webkitpy.common.system.outputcapture import OutputCapture | 11 from webkitpy.common.system.outputcapture import OutputCapture |
| 14 from webkitpy.layout_tests.builder_list import BuilderList | 12 from webkitpy.layout_tests.builder_list import BuilderList |
| 15 from webkitpy.tool.commands.rebaseline import AbstractParallelRebaselineCommand | 13 from webkitpy.tool.commands.rebaseline import ( |
| 16 from webkitpy.tool.commands.rebaseline import CopyExistingBaselinesInternal | 14 AbstractParallelRebaselineCommand, CopyExistingBaselinesInternal, |
| 17 from webkitpy.tool.commands.rebaseline import Rebaseline | 15 Rebaseline, RebaselineExpectations, RebaselineJson, RebaselineTest |
| 18 from webkitpy.tool.commands.rebaseline import RebaselineExpectations | 16 ) |
| 19 from webkitpy.tool.commands.rebaseline import RebaselineJson | |
| 20 from webkitpy.tool.commands.rebaseline import RebaselineTest | |
| 21 from webkitpy.tool.mock_tool import MockWebKitPatch | 17 from webkitpy.tool.mock_tool import MockWebKitPatch |
| 22 | 18 |
| 23 | 19 |
| 24 # pylint: disable=protected-access | 20 # pylint: disable=protected-access |
| 25 class BaseTestCase(unittest.TestCase): | 21 class BaseTestCase(unittest.TestCase): |
| 26 MOCK_WEB_RESULT = 'MOCK Web result, convert 404 to None=True' | 22 MOCK_WEB_RESULT = 'MOCK Web result, convert 404 to None=True' |
| 27 WEB_PREFIX = 'https://storage.googleapis.com/chromium-layout-test-archives/M
OCK_Mac10_11/results/layout-test-results' | 23 WEB_PREFIX = 'https://storage.googleapis.com/chromium-layout-test-archives/M
OCK_Mac10_11/results/layout-test-results' |
| 28 | 24 |
| 29 command_constructor = None | 25 command_constructor = None |
| 30 | 26 |
| (...skipping 902 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 933 for cmd_line, cwd in commands: | 929 for cmd_line, cwd in commands: |
| 934 out = self.run_command(cmd_line, cwd=cwd) | 930 out = self.run_command(cmd_line, cwd=cwd) |
| 935 if 'rebaseline-test-internal' in cmd_line: | 931 if 'rebaseline-test-internal' in cmd_line: |
| 936 out = '{"add": [], "remove-lines": [{"test": "%s", "builder": "%
s"}], "delete": []}\n' % (cmd_line[8], cmd_line[6]) | 932 out = '{"add": [], "remove-lines": [{"test": "%s", "builder": "%
s"}], "delete": []}\n' % (cmd_line[8], cmd_line[6]) |
| 937 command_outputs.append([0, out, '']) | 933 command_outputs.append([0, out, '']) |
| 938 | 934 |
| 939 new_calls = self.calls[num_previous_calls:] | 935 new_calls = self.calls[num_previous_calls:] |
| 940 self.calls = self.calls[:num_previous_calls] | 936 self.calls = self.calls[:num_previous_calls] |
| 941 self.calls.append(new_calls) | 937 self.calls.append(new_calls) |
| 942 return command_outputs | 938 return command_outputs |
| OLD | NEW |