Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(424)

Side by Side Diff: third_party/WebKit/Tools/Scripts/webkitpy/tool/commands/auto_rebaseline_unittest.py

Issue 2859703002: webkitpy: Override TEMPDIR for Xvfb. (Closed)
Patch Set: todo comment Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 6
7 from webkitpy.common.net.buildbot import Build 7 from webkitpy.common.net.buildbot import Build
8 from webkitpy.common.net.layout_test_results import LayoutTestResults 8 from webkitpy.common.net.layout_test_results import LayoutTestResults
9 from webkitpy.common.system.executive_mock import MockExecutive 9 from webkitpy.common.system.executive_mock import MockExecutive
10 from webkitpy.layout_tests.builder_list import BuilderList 10 from webkitpy.layout_tests.builder_list import BuilderList
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after
216 self.tool.builders = BuilderList({ 216 self.tool.builders = BuilderList({
217 'MOCK Mac10.10': {'port_name': 'test-mac-mac10.10', 'specifiers': [' Mac10.10', 'Release']}, 217 'MOCK Mac10.10': {'port_name': 'test-mac-mac10.10', 'specifiers': [' Mac10.10', 'Release']},
218 'MOCK Mac10.11': {'port_name': 'test-mac-mac10.11', 'specifiers': [' Mac10.11', 'Release']}, 218 'MOCK Mac10.11': {'port_name': 'test-mac-mac10.11', 'specifiers': [' Mac10.11', 'Release']},
219 }) 219 })
220 220
221 self.command.tree_status = lambda: 'closed' 221 self.command.tree_status = lambda: 'closed'
222 self._execute_with_mock_options() 222 self._execute_with_mock_options()
223 self.assertEqual(self.tool.executive.calls, []) 223 self.assertEqual(self.tool.executive.calls, [])
224 224
225 self.command.tree_status = lambda: 'open' 225 self.command.tree_status = lambda: 'open'
226 self.tool.executive.calls = [] 226 self.tool.executive.full_calls = []
227 self._execute_with_mock_options() 227 self._execute_with_mock_options()
228 228
229 self.assertEqual(self.tool.executive.calls, [ 229 self.assertEqual(self.tool.executive.calls, [
230 [ 230 [
231 [ 231 [
232 'python', 'echo', 'copy-existing-baselines-internal', 232 'python', 'echo', 'copy-existing-baselines-internal',
233 '--test', 'fast/dom/prototype-strawberry.html', 233 '--test', 'fast/dom/prototype-strawberry.html',
234 '--suffixes', 'png', 234 '--suffixes', 'png',
235 '--port-name', 'test-mac-mac10.11', 235 '--port-name', 'test-mac-mac10.11',
236 ], 236 ],
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
315 315
316 self._write_test_file(test_port, 'fast/dom/prototype-taco.html', 'Dummy test contents') 316 self._write_test_file(test_port, 'fast/dom/prototype-taco.html', 'Dummy test contents')
317 317
318 self.tool.builders = BuilderList({ 318 self.tool.builders = BuilderList({
319 'MOCK Mac10.11': {'port_name': 'test-mac-mac10.11', 'specifiers': [' Mac10.11', 'Release']}, 319 'MOCK Mac10.11': {'port_name': 'test-mac-mac10.11', 'specifiers': [' Mac10.11', 'Release']},
320 }) 320 })
321 321
322 self.command.SECONDS_BEFORE_GIVING_UP = 0 322 self.command.SECONDS_BEFORE_GIVING_UP = 0
323 self.command.tree_status = lambda: 'open' 323 self.command.tree_status = lambda: 'open'
324 self.tool.executive = MockExecutive() 324 self.tool.executive = MockExecutive()
325 self.tool.executive.calls = [] 325 self.tool.executive.full_calls = []
326 self._execute_with_mock_options() 326 self._execute_with_mock_options()
327 327
328 self.assertEqual(self.tool.executive.calls, [ 328 self.assertEqual(self.tool.executive.calls, [
329 [[ 329 [[
330 'python', 'echo', 'copy-existing-baselines-internal', 330 'python', 'echo', 'copy-existing-baselines-internal',
331 '--test', 'fast/dom/prototype-taco.html', 331 '--test', 'fast/dom/prototype-taco.html',
332 '--suffixes', 'txt', 332 '--suffixes', 'txt',
333 '--port-name', 'test-mac-mac10.11', 333 '--port-name', 'test-mac-mac10.11',
334 ]], 334 ]],
335 [[ 335 [[
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after
566 566
567 def test_execute_with_dry_run(self): 567 def test_execute_with_dry_run(self):
568 self._basic_execute_test([], dry_run=True) 568 self._basic_execute_test([], dry_run=True)
569 self.assertEqual(self.tool.git().local_commits(), []) 569 self.assertEqual(self.tool.git().local_commits(), [])
570 570
571 def test_bot_revision_data(self): 571 def test_bot_revision_data(self):
572 self._setup_mock_build_data() 572 self._setup_mock_build_data()
573 self.assertEqual( 573 self.assertEqual(
574 self.command.bot_revision_data(self.tool.git()), 574 self.command.bot_revision_data(self.tool.git()),
575 [{'builder': 'MOCK Win7', 'revision': '9000'}]) 575 [{'builder': 'MOCK Win7', 'revision': '9000'}])
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698