Index: Tools/Scripts/webkitpy/layout_tests/port/builders.py |
diff --git a/Tools/Scripts/webkitpy/layout_tests/port/builders.py b/Tools/Scripts/webkitpy/layout_tests/port/builders.py |
index 58fd07369af54c487c2c29976d0c40d895806959..c62ffa058dcc6640e5dbdbfb9f0fb5630d408ed3 100644 |
--- a/Tools/Scripts/webkitpy/layout_tests/port/builders.py |
+++ b/Tools/Scripts/webkitpy/layout_tests/port/builders.py |
@@ -37,23 +37,25 @@ from webkitpy.common.memoized import memoized |
# This is useful when we don't have bots that cover particular configurations; so, e.g., you might |
# support mac-mountainlion but not have a mac-mountainlion bot yet, so you'd want to put the mac-lion |
# results into platform/mac temporarily. |
+# * specifiers -- TestExpectation specifiers for that config. Valid values are found in |
+# TestExpectationsParser._configuration_tokens_list |
_exact_matches = { |
- "WebKit XP": {"port_name": "win-xp"}, |
- "WebKit Win7": {"port_name": "win-win7"}, |
- "WebKit Win7 (dbg)": {"port_name": "win-win7"}, |
- "WebKit Linux": {"port_name": "linux-x86_64"}, |
- "WebKit Linux 32": {"port_name": "linux-x86"}, |
- "WebKit Linux (dbg)": {"port_name": "linux-x86_64"}, |
- "WebKit Linux ASAN": {"port_name": "linux-x86_64"}, |
- "WebKit Mac10.6": {"port_name": "mac-snowleopard"}, |
- "WebKit Mac10.6 (dbg)": {"port_name": "mac-snowleopard"}, |
- "WebKit Mac10.7": {"port_name": "mac-lion"}, |
- "WebKit Mac10.7 (dbg)": {"port_name": "mac-lion"}, |
- "WebKit Mac10.8": {"port_name": "mac-mountainlion"}, |
- "WebKit Mac10.8 (retina)": {"port_name": "mac-retina"}, |
- "WebKit Mac10.9": {"port_name": "mac-mavericks"}, |
- "WebKit Android (Nexus4)": {"port_name": "android"}, |
+ "WebKit XP": {"port_name": "win-xp", "specifiers": ['XP']}, |
ojan
2014/05/29 18:51:20
It's a bummer to hard-code this. Can you add a FIX
Dirk Pranke
2014/05/29 18:59:56
I'm not sure that that would be any cleaner. I tho
ojan
2014/05/29 19:37:04
It's another place where we've duplicated specifie
|
+ "WebKit Win7": {"port_name": "win-win7", "specifiers": ['Win7']}, |
Dirk Pranke
2014/05/29 18:25:21
Should the non-dbg bots have 'Release'?
|
+ "WebKit Win7 (dbg)": {"port_name": "win-win7", "specifiers": ['Win7', 'Debug']}, |
+ "WebKit Linux": {"port_name": "linux-x86_64", "specifiers": ['Linux']}, |
+ "WebKit Linux 32": {"port_name": "linux-x86", "specifiers": ['Linux']}, |
+ "WebKit Linux (dbg)": {"port_name": "linux-x86_64", "specifiers": ['Linux', 'Debug']}, |
+ "WebKit Linux ASAN": {"port_name": "linux-x86_64", "specifiers": ['Linux']}, |
+ "WebKit Mac10.6": {"port_name": "mac-snowleopard", "specifiers": ['SnowLeopard']}, |
+ "WebKit Mac10.6 (dbg)": {"port_name": "mac-snowleopard", "specifiers": ['SnowLeopard', 'Debug']}, |
+ "WebKit Mac10.7": {"port_name": "mac-lion", "specifiers": ['Lion']}, |
+ "WebKit Mac10.7 (dbg)": {"port_name": "mac-lion", "specifiers": ['Lion', 'Debug']}, |
+ "WebKit Mac10.8": {"port_name": "mac-mountainlion", "specifiers": ['MountainLion']}, |
+ "WebKit Mac10.8 (retina)": {"port_name": "mac-retina", "specifiers": ['MountainLion', 'Retina']}, |
Dirk Pranke
2014/05/29 18:25:21
This one should just be retina.
|
+ "WebKit Mac10.9": {"port_name": "mac-mavericks", "specifiers": ['Mavericks', 'Retina']}, |
Dirk Pranke
2014/05/29 18:25:21
This one isn't retina.
|
+ "WebKit Android (Nexus4)": {"port_name": "android", "specifiers": ['Android']}, |
} |
@@ -95,6 +97,10 @@ def port_name_for_builder_name(builder_name): |
return _exact_matches[builder_name]["port_name"] |
+def specifiers_for_builder(builder_name): |
+ return _exact_matches[builder_name]["specifiers"] |
+ |
+ |
def builder_name_for_port_name(target_port_name): |
debug_builder_name = None |
for builder_name, builder_info in _exact_matches.items(): |