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

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

Issue 2262743002: DevTools: Run devtools tests in release mode (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add flag Created 4 years, 4 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 (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 200 matching lines...) Expand 10 before | Expand all | Expand 10 after
211 self._virtual_test_suites = None 211 self._virtual_test_suites = None
212 212
213 def __str__(self): 213 def __str__(self):
214 return "Port{name=%s, version=%s, architecture=%s, test_configuration=%s }" % ( 214 return "Port{name=%s, version=%s, architecture=%s, test_configuration=%s }" % (
215 self._name, self._version, self._architecture, self._test_configurat ion) 215 self._name, self._version, self._architecture, self._test_configurat ion)
216 216
217 def buildbot_archives_baselines(self): 217 def buildbot_archives_baselines(self):
218 return True 218 return True
219 219
220 def additional_driver_flag(self): 220 def additional_driver_flag(self):
221 flags = []
221 if self.driver_name() == self.CONTENT_SHELL_NAME: 222 if self.driver_name() == self.CONTENT_SHELL_NAME:
222 return ['--run-layout-test'] 223 flags.append('--run-layout-test')
223 return [] 224 if self.get_option('debug_devtools'):
225 flags.append('--debug-devtools')
pfeldman 2016/08/24 00:36:04 We can use additional driver flags instead.
chenwilliam 2016/08/24 22:53:40 Done.
226 return flags
224 227
225 def supports_per_test_timeout(self): 228 def supports_per_test_timeout(self):
226 return False 229 return False
227 230
228 def default_pixel_tests(self): 231 def default_pixel_tests(self):
229 return True 232 return True
230 233
231 def default_smoke_test_only(self): 234 def default_smoke_test_only(self):
232 return False 235 return False
233 236
(...skipping 784 matching lines...) Expand 10 before | Expand all | Expand 10 after
1018 self._results_directory = self._filesystem.abspath(option_val) 1021 self._results_directory = self._filesystem.abspath(option_val)
1019 return self._results_directory 1022 return self._results_directory
1020 1023
1021 def bot_test_times_path(self): 1024 def bot_test_times_path(self):
1022 return self._build_path('webkit_test_times', 'bot_times_ms.json') 1025 return self._build_path('webkit_test_times', 'bot_times_ms.json')
1023 1026
1024 def perf_results_directory(self): 1027 def perf_results_directory(self):
1025 return self._build_path() 1028 return self._build_path()
1026 1029
1027 def inspector_build_directory(self): 1030 def inspector_build_directory(self):
1028 return self._build_path('resources', 'inspector') 1031 if self.get_option('debug_devtools'):
1032 return self._build_path('resources', 'inspector')
1033 return self._build_path('resources', 'inspector_release')
pfeldman 2016/08/24 00:36:04 We should be able to substitute this in the native
chenwilliam 2016/08/24 22:53:40 Done.
1029 1034
1030 def default_results_directory(self): 1035 def default_results_directory(self):
1031 """Absolute path to the default place to store the test results.""" 1036 """Absolute path to the default place to store the test results."""
1032 return self._build_path('layout-test-results') 1037 return self._build_path('layout-test-results')
1033 1038
1034 def setup_test_run(self): 1039 def setup_test_run(self):
1035 """Perform port-specific work at the beginning of a test run.""" 1040 """Perform port-specific work at the beginning of a test run."""
1036 # Delete the disk cache if any to ensure a clean test run. 1041 # Delete the disk cache if any to ensure a clean test run.
1037 dump_render_tree_binary_path = self._path_to_driver() 1042 dump_render_tree_binary_path = self._path_to_driver()
1038 cachedir = self._filesystem.dirname(dump_render_tree_binary_path) 1043 cachedir = self._filesystem.dirname(dump_render_tree_binary_path)
(...skipping 748 matching lines...) Expand 10 before | Expand all | Expand 10 after
1787 1792
1788 def __init__(self, base, args, reference_args=None): 1793 def __init__(self, base, args, reference_args=None):
1789 self.name = base 1794 self.name = base
1790 self.base = base 1795 self.base = base
1791 self.args = args 1796 self.args = args
1792 self.reference_args = args if reference_args is None else reference_args 1797 self.reference_args = args if reference_args is None else reference_args
1793 self.tests = set() 1798 self.tests = set()
1794 1799
1795 def __repr__(self): 1800 def __repr__(self):
1796 return "PhysicalTestSuite('%s', '%s', %s, %s)" % (self.name, self.base, self.args, self.reference_args) 1801 return "PhysicalTestSuite('%s', '%s', %s, %s)" % (self.name, self.base, self.args, self.reference_args)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698