Changeset 83906 in webkit
- Timestamp:
- Apr 14, 2011 3:55:46 PM (13 years ago)
- Location:
- trunk/Tools
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Tools/ChangeLog
r83903 r83906 1 2011-04-14 Eric Seidel <eric@webkit.org> 2 3 Reviewed by Adam Barth. 4 5 commit-queue fails to catch IOError when results.html is missing 6 https://bugs.webkit.org/show_bug.cgi?id=58589 7 8 * Scripts/webkitpy/tool/commands/queues.py: 9 * Scripts/webkitpy/tool/commands/queues_unittest.py: 10 1 11 2011-04-14 Kevin Ollivier <kevino@theolliviers.com> 2 12 -
trunk/Tools/Scripts/webkitpy/tool/commands/queues.py
r83876 r83906 317 317 try: 318 318 return self._tool.filesystem.read_text_file(path) 319 except OSError, e: # File does not exist or can't be read.319 except IOError, e: # File does not exist or can't be read. 320 320 return None 321 321 -
trunk/Tools/Scripts/webkitpy/tool/commands/queues_unittest.py
r83876 r83906 379 379 OutputCapture().assert_outputs(self, queue.report_flaky_tests, [QueuesTest.mock_work_item, test_results, MockZipFile()], expected_stderr=expected_stderr) 380 380 381 def test_missing_layout_test_results(self): 382 queue = CommitQueue() 383 tool = MockTool() 384 results_path = '/mock/results.html' 385 tool.filesystem = MockFileSystem({results_path: None}) 386 queue.bind_to_tool(tool) 387 # Make sure that our filesystem mock functions as we expect. 388 self.assertRaises(IOError, tool.filesystem.read_text_file, results_path) 389 # layout_test_results shouldn't raise even if the results.html file is missing. 390 self.assertEquals(queue.layout_test_results(), None) 391 381 392 def test_layout_test_results(self): 382 393 queue = CommitQueue()
Note: See TracChangeset
for help on using the changeset viewer.