Changeset 70731 in webkit
- Timestamp:
- Oct 27, 2010 5:05:07 PM (13 years ago)
- Location:
- trunk/WebKitTools
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebKitTools/ChangeLog
r70728 r70731 1 2010-10-27 Eric Seidel <eric@webkit.org> 2 3 Reviewed by Ojan Vafai. 4 5 EWS bots should not use --quiet when running build-webkit 6 https://bugs.webkit.org/show_bug.cgi?id=48482 7 8 --quiet is only correct when the sub-process does the error reporting. 9 In the case of _can_build() the parent process is reporting the error. 10 We'd like the full build log at queues.webkit.org so someone can look 11 at the log and understand why the EWS is failing to build trunk. 12 13 * Scripts/webkitpy/layout_tests/port/chromium_win_unittest.py: 14 * Scripts/webkitpy/tool/commands/earlywarningsystem.py: 15 * Scripts/webkitpy/tool/commands/earlywarningsystem_unittest.py: 16 * Scripts/webkitpy/tool/mocktool.py: 17 1 18 2010-10-27 Brian Weinstein <bweinstein@apple.com> 2 19 -
trunk/WebKitTools/Scripts/webkitpy/layout_tests/port/chromium_win_unittest.py
r59666 r70731 52 52 def test_setup_environ_for_server(self): 53 53 port = chromium_win.ChromiumWinPort() 54 port._executive = mocktool.MockExecut e(True)54 port._executive = mocktool.MockExecutive(should_log=True) 55 55 port.path_from_chromium_base = self._mock_path_from_chromium_base 56 56 output = outputcapture.OutputCapture() … … 64 64 port = chromium_win.ChromiumWinPort( 65 65 options=ChromiumWinTest.RegisterCygwinOption()) 66 port._executive = mocktool.MockExecut e(True)66 port._executive = mocktool.MockExecutive(should_log=True) 67 67 port.path_from_chromium_base = self._mock_path_from_chromium_base 68 68 setup_mount = self._mock_path_from_chromium_base("third_party", -
trunk/WebKitTools/Scripts/webkitpy/tool/commands/earlywarningsystem.py
r70328 r70731 51 51 "--build-style=%s" % self._build_style, 52 52 "--force-clean", 53 "--no-update", 54 "--quiet"]) 53 "--no-update"]) 55 54 return True 56 55 except ScriptError, e: -
trunk/WebKitTools/Scripts/webkitpy/tool/commands/earlywarningsystem_unittest.py
r70382 r70731 34 34 from webkitpy.tool.commands.earlywarningsystem import * 35 35 from webkitpy.tool.commands.queuestest import QueuesTest 36 from webkitpy.tool.mocktool import MockTool 36 from webkitpy.tool.mocktool import MockTool, MockOptions 37 37 38 38 39 39 class AbstractEarlyWarningSystemTest(QueuesTest): 40 def test_can_build(self): 41 # Needed to define port_name, used in AbstractEarlyWarningSystem.__init__ 42 class TestEWS(AbstractEarlyWarningSystem): 43 port_name = "win" # Needs to be a port which port/factory understands. 44 45 queue = TestEWS() 46 queue.bind_to_tool(MockTool(log_executive=True)) 47 queue._options = MockOptions(port=None) 48 expected_stderr = "MOCK run_and_throw_if_fail: ['echo', '--status-host=example.com', 'build', '--port=win', '--build-style=release', '--force-clean', '--no-update']\n" 49 OutputCapture().assert_outputs(self, queue._can_build, [], expected_stderr=expected_stderr) 50 51 def mock_run_webkit_patch(args): 52 raise ScriptError("MOCK script error") 53 54 queue.run_webkit_patch = mock_run_webkit_patch 55 expected_stderr = "MOCK: update_status: None Unable to perform a build\n" 56 OutputCapture().assert_outputs(self, queue._can_build, [], expected_stderr=expected_stderr) 57 58 # FIXME: This belongs on an AbstractReviewQueueTest object in queues_unittest.py 40 59 def test_subprocess_handled_error(self): 41 60 queue = AbstractReviewQueue() -
trunk/WebKitTools/Scripts/webkitpy/tool/mocktool.py
r70570 r70731 569 569 570 570 # FIXME: This should not inherit from Mock 571 class MockExecut e(Mock):571 class MockExecutive(Mock): 572 572 def __init__(self, should_log): 573 573 self._should_log = should_log … … 628 628 self.bugs = MockBugzilla() 629 629 self.buildbot = MockBuildBot() 630 self.executive = MockExecut e(should_log=log_executive)630 self.executive = MockExecutive(should_log=log_executive) 631 631 self._irc = None 632 632 self.user = MockUser()
Note: See TracChangeset
for help on using the changeset viewer.