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.layout_test_results import LayoutTestResults |
10 from webkitpy.common.system.executive_mock import MockExecutive, MockExecutive2 | 10 from webkitpy.common.system.executive_mock import MockExecutive, MockExecutive2 |
11 from webkitpy.common.system.outputcapture import OutputCapture | 11 from webkitpy.common.system.output_capture import OutputCapture |
12 from webkitpy.layout_tests.builder_list import BuilderList | 12 from webkitpy.layout_tests.builder_list import BuilderList |
13 from webkitpy.tool.commands.rebaseline import ( | 13 from webkitpy.tool.commands.rebaseline import ( |
14 AbstractParallelRebaselineCommand, CopyExistingBaselinesInternal, | 14 AbstractParallelRebaselineCommand, CopyExistingBaselinesInternal, |
15 Rebaseline, RebaselineExpectations, RebaselineJson, RebaselineTest | 15 Rebaseline, RebaselineExpectations, RebaselineJson, RebaselineTest |
16 ) | 16 ) |
17 from webkitpy.tool.mock_tool import MockWebKitPatch | 17 from webkitpy.tool.mock_tool import MockWebKitPatch |
18 | 18 |
19 | 19 |
20 # pylint: disable=protected-access | 20 # pylint: disable=protected-access |
21 class BaseTestCase(unittest.TestCase): | 21 class BaseTestCase(unittest.TestCase): |
(...skipping 904 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
926 for cmd_line, cwd in commands: | 926 for cmd_line, cwd in commands: |
927 out = self.run_command(cmd_line, cwd=cwd) | 927 out = self.run_command(cmd_line, cwd=cwd) |
928 if 'rebaseline-test-internal' in cmd_line: | 928 if 'rebaseline-test-internal' in cmd_line: |
929 out = '{"remove-lines": [{"test": "%s", "builder": "%s"}]}\n' %
(cmd_line[8], cmd_line[6]) | 929 out = '{"remove-lines": [{"test": "%s", "builder": "%s"}]}\n' %
(cmd_line[8], cmd_line[6]) |
930 command_outputs.append([0, out, '']) | 930 command_outputs.append([0, out, '']) |
931 | 931 |
932 new_calls = self.calls[num_previous_calls:] | 932 new_calls = self.calls[num_previous_calls:] |
933 self.calls = self.calls[:num_previous_calls] | 933 self.calls = self.calls[:num_previous_calls] |
934 self.calls.append(new_calls) | 934 self.calls.append(new_calls) |
935 return command_outputs | 935 return command_outputs |
OLD | NEW |