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

Side by Side Diff: third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/port/test.py

Issue 2456073002: Rename test port baseline directories in unit tests. (Closed)
Patch Set: Whitespace / comments Created 4 years, 1 month 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
« no previous file with comments | « no previous file | third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/run_webkit_tests_unittest.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (C) 2010 Google Inc. All rights reserved. 1 # Copyright (C) 2010 Google Inc. All rights reserved.
2 # 2 #
3 # Redistribution and use in source and binary forms, with or without 3 # Redistribution and use in source and binary forms, with or without
4 # modification, are permitted provided that the following conditions are 4 # modification, are permitted provided that the following conditions are
5 # met: 5 # met:
6 # 6 #
7 # * Redistributions of source code must retain the above copyright 7 # * Redistributions of source code must retain the above copyright
8 # notice, this list of conditions and the following disclaimer. 8 # notice, this list of conditions and the following disclaimer.
9 # * Redistributions in binary form must reproduce the above 9 # * Redistributions in binary form must reproduce the above
10 # copyright notice, this list of conditions and the following disclaimer 10 # copyright notice, this list of conditions and the following disclaimer
(...skipping 347 matching lines...) Expand 10 before | Expand all | Expand 10 after
358 filesystem.write_text_file(filesystem.join(LAYOUT_TEST_DIR, 'virtual', 'virt ual_passes', 358 filesystem.write_text_file(filesystem.join(LAYOUT_TEST_DIR, 'virtual', 'virt ual_passes',
359 'passes', 'args-expected.txt'), ' args-txt --virtual-arg') 359 'passes', 'args-expected.txt'), ' args-txt --virtual-arg')
360 # Clear the list of written files so that we can watch what happens during t esting. 360 # Clear the list of written files so that we can watch what happens during t esting.
361 filesystem.clear_written_files() 361 filesystem.clear_written_files()
362 362
363 363
364 class TestPort(Port): 364 class TestPort(Port):
365 port_name = 'test' 365 port_name = 'test'
366 default_port_name = 'test-mac-mac10.10' 366 default_port_name = 'test-mac-mac10.10'
367 367
368 # FALLBACK_PATHS is a map of version name to baseline directories to search;
369 # these directory names don't necessarily have to be port names.
Dirk Pranke 2016/10/27 21:01:44 They don't have to be, but it's probably a good id
368 FALLBACK_PATHS = { 370 FALLBACK_PATHS = {
369 'win7': ['test-win-win7', 'test-win-win10'], 371 'win10': ['win-baselines'],
370 'win10': ['test-win-win10'], 372 'win7': ['win7-baselines', 'win-baselines'],
371 'mac10.10': ['test-mac-mac10.10', 'test-mac-mac10.11'], 373 'mac10.11': ['mac-baselines'],
372 'mac10.11': ['test-mac-mac10.11'], 374 'mac10.10': ['mac10.10-baselines', 'mac-baselines'],
373 'trusty': ['test-linux-trusty', 'test-win-win7'], 375 'trusty': ['linux-baselines', 'win7-baselines'],
374 'precise': ['test-linux-precise', 'test-linux-trusty', 'test-win-win7'], 376 'precise': ['linux-precise-baselines', 'linux-baselines', 'win7-baseline s'],
375 } 377 }
376 378
377 @classmethod 379 @classmethod
378 def determine_full_port_name(cls, host, options, port_name): 380 def determine_full_port_name(cls, host, options, port_name):
379 if port_name == 'test': 381 if port_name == 'test':
380 return TestPort.default_port_name 382 return TestPort.default_port_name
381 return port_name 383 return port_name
382 384
383 def __init__(self, host, port_name=None, **kwargs): 385 def __init__(self, host, port_name=None, **kwargs):
384 Port.__init__(self, host, port_name or TestPort.default_port_name, **kwa rgs) 386 Port.__init__(self, host, port_name or TestPort.default_port_name, **kwa rgs)
(...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after
641 else: 643 else:
642 image = test.actual_image 644 image = test.actual_image
643 return DriverOutput(actual_text, image, test.actual_checksum, audio, 645 return DriverOutput(actual_text, image, test.actual_checksum, audio,
644 crash=(crash or web_process_crash), crashed_process_ name=crashed_process_name, 646 crash=(crash or web_process_crash), crashed_process_ name=crashed_process_name,
645 crashed_pid=crashed_pid, crash_log=crash_log, 647 crashed_pid=crashed_pid, crash_log=crash_log,
646 test_time=time.time() - start_time, timeout=test.tim eout, error=test.error, pid=self.pid, 648 test_time=time.time() - start_time, timeout=test.tim eout, error=test.error, pid=self.pid,
647 leak=test.leak) 649 leak=test.leak)
648 650
649 def stop(self): 651 def stop(self):
650 self.started = False 652 self.started = False
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/run_webkit_tests_unittest.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698