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

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

Issue 1766583002: Added update_test_expectations script to remove non-flaky test expectations. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Mock out builders and specifiers, dont remove lines if bot results arent available Created 4 years, 9 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) 2011 Google Inc. All rights reserved. 1 # Copyright (C) 2011 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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 debug_builder_name = None 86 debug_builder_name = None
87 for builder_name, builder_info in _exact_matches.items(): 87 for builder_name, builder_info in _exact_matches.items():
88 if builder_info['port_name'] == target_port_name: 88 if builder_info['port_name'] == target_port_name:
89 if 'dbg' in builder_name: 89 if 'dbg' in builder_name:
90 debug_builder_name = builder_name 90 debug_builder_name = builder_name
91 else: 91 else:
92 return builder_name 92 return builder_name
93 return debug_builder_name 93 return debug_builder_name
94 94
95 95
96 def builder_name_for_specifiers(version, build_type):
97 for builder_name, info in _exact_matches.items():
98 specifiers = info['specifiers']
99 if specifiers[0].lower() == version.lower() and specifiers[1].lower() == build_type.lower():
100 return builder_name
101
102 return ''
103
104
96 def builder_path_for_port_name(port_name): 105 def builder_path_for_port_name(port_name):
97 builder_path_from_name(builder_name_for_port_name(port_name)) 106 builder_path_from_name(builder_name_for_port_name(port_name))
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698