Changeset 90651 in webkit
- Timestamp:
- Jul 8, 2011 12:21:41 PM (13 years ago)
- Location:
- trunk/Tools
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Tools/ChangeLog
r90650 r90651 1 2011-07-08 Dirk Pranke <dpranke@chromium.org> 2 3 REGRESSION(90419) NRWT's httpd locking is broken for --child-processes=1 4 https://bugs.webkit.org/show_bug.cgi?id=64092 5 6 Reviewed by Tony Chang. 7 8 The code was incorrectly creating empty shards in the 9 shard_in_two case. 10 11 * Scripts/webkitpy/layout_tests/controllers/manager.py: 12 * Scripts/webkitpy/layout_tests/controllers/manager_unittest.py: 13 1 14 2011-07-08 Adam Roben <aroben@apple.com> 2 15 -
trunk/Tools/Scripts/webkitpy/layout_tests/controllers/manager.py
r90546 r90651 570 570 else: 571 571 unlocked_inputs.append(test_input) 572 return [TestShard('locked_tests', locked_inputs)], [TestShard('unlocked_tests', unlocked_inputs)] 572 573 locked_shards = [] 574 unlocked_shards = [] 575 if locked_inputs: 576 locked_shards = [TestShard('locked_tests', locked_inputs)] 577 if unlocked_inputs: 578 unlocked_shards = [TestShard('unlocked_tests', unlocked_inputs)] 579 580 return locked_shards, unlocked_shards 573 581 574 582 def _shard_every_file(self, test_files): -
trunk/Tools/Scripts/webkitpy/layout_tests/controllers/manager_unittest.py
r90546 r90651 68 68 ] 69 69 70 def get_shards(self, num_workers, fully_parallel): 70 def get_shards(self, num_workers, fully_parallel, test_list=None): 71 test_list = test_list or self.test_list 71 72 port = layout_tests.port.get(port_name='test') 72 73 port._filesystem = filesystem_mock.MockFileSystem() 73 74 self.manager = ManagerWrapper(port=port, options=Mock(), printer=Mock()) 74 return self.manager._shard_tests( self.test_list, num_workers, fully_parallel)75 return self.manager._shard_tests(test_list, num_workers, fully_parallel) 75 76 76 77 def test_shard_by_dir(self): … … 127 128 'dom/html/level2/html/HTMLAnchorElement06.html'])]) 128 129 130 def test_shard_in_two_has_no_locked_shards(self): 131 locked, unlocked = self.get_shards(num_workers=1, fully_parallel=False, 132 test_list=['animations/keyframe.html']) 133 self.assertEquals(len(locked), 0) 134 self.assertEquals(len(unlocked), 1) 135 136 def test_shard_in_two_has_no_unlocked_shards(self): 137 locked, unlocked = self.get_shards(num_workers=1, fully_parallel=False, 138 test_list=['http/tests/webcoket/tests/unicode.htm']) 139 self.assertEquals(len(locked), 1) 140 self.assertEquals(len(unlocked), 0) 141 129 142 130 143 class ManagerTest(unittest.TestCase):
Note: See TracChangeset
for help on using the changeset viewer.