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

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

Issue 301853003: Make update-flaky-tests to work again and support all bots (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Removed use of operator.attrgetter Created 6 years, 6 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 | Annotate | Revision Log
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 1206 matching lines...) Expand 10 before | Expand all | Expand 10 after
1217 def warn_if_bug_missing_in_test_expectations(self): 1217 def warn_if_bug_missing_in_test_expectations(self):
1218 return True 1218 return True
1219 1219
1220 def _port_specific_expectations_files(self): 1220 def _port_specific_expectations_files(self):
1221 paths = [] 1221 paths = []
1222 paths.append(self.path_from_chromium_base('skia', 'skia_test_expectation s.txt')) 1222 paths.append(self.path_from_chromium_base('skia', 'skia_test_expectation s.txt'))
1223 paths.append(self.path_from_chromium_base('webkit', 'tools', 'layout_tes ts', 'test_expectations_w3c.txt')) 1223 paths.append(self.path_from_chromium_base('webkit', 'tools', 'layout_tes ts', 'test_expectations_w3c.txt'))
1224 paths.append(self._filesystem.join(self.layout_tests_dir(), 'NeverFixTes ts')) 1224 paths.append(self._filesystem.join(self.layout_tests_dir(), 'NeverFixTes ts'))
1225 paths.append(self._filesystem.join(self.layout_tests_dir(), 'StaleTestEx pectations')) 1225 paths.append(self._filesystem.join(self.layout_tests_dir(), 'StaleTestEx pectations'))
1226 paths.append(self._filesystem.join(self.layout_tests_dir(), 'SlowTests') ) 1226 paths.append(self._filesystem.join(self.layout_tests_dir(), 'SlowTests') )
1227 paths.append(self._filesystem.join(self.layout_tests_dir(), 'FlakyTests' ))
1227 1228
1228 builder_name = self.get_option('builder_name', 'DUMMY_BUILDER_NAME') 1229 builder_name = self.get_option('builder_name', 'DUMMY_BUILDER_NAME')
1229 if builder_name == 'DUMMY_BUILDER_NAME' or '(deps)' in builder_name or b uilder_name in self.try_builder_names: 1230 if builder_name == 'DUMMY_BUILDER_NAME' or '(deps)' in builder_name or b uilder_name in self.try_builder_names:
1230 paths.append(self.path_from_chromium_base('webkit', 'tools', 'layout _tests', 'test_expectations.txt')) 1231 paths.append(self.path_from_chromium_base('webkit', 'tools', 'layout _tests', 'test_expectations.txt'))
1231 return paths 1232 return paths
1232 1233
1233 def expectations_dict(self): 1234 def expectations_dict(self):
1234 """Returns an OrderedDict of name -> expectations strings. 1235 """Returns an OrderedDict of name -> expectations strings.
1235 The names are expected to be (but not required to be) paths in the files ystem. 1236 The names are expected to be (but not required to be) paths in the files ystem.
1236 If the name is a path, the file can be considered updatable for things l ike rebaselining, 1237 If the name is a path, the file can be considered updatable for things l ike rebaselining,
(...skipping 698 matching lines...) Expand 10 before | Expand all | Expand 10 after
1935 1936
1936 class PhysicalTestSuite(object): 1937 class PhysicalTestSuite(object):
1937 def __init__(self, base, args): 1938 def __init__(self, base, args):
1938 self.name = base 1939 self.name = base
1939 self.base = base 1940 self.base = base
1940 self.args = args 1941 self.args = args
1941 self.tests = set() 1942 self.tests = set()
1942 1943
1943 def __repr__(self): 1944 def __repr__(self):
1944 return "PhysicalTestSuite('%s', '%s', %s)" % (self.name, self.base, self .args) 1945 return "PhysicalTestSuite('%s', '%s', %s)" % (self.name, self.base, self .args)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698