Commit f5f4ea27 authored by Stephen Martinis's avatar Stephen Martinis Committed by Commit Bot

//testing/buildbot: Use mixins for chromium.mac

This CL enforces swarming dimensions for the mac testers on
chromium.mac using swarming_mixins.

Bug: 880973
Change-Id: I3982de0c6704ceaa2f8e3ab5b9909c5c01319aa6
Reviewed-on: https://chromium-review.googlesource.com/1223027
Commit-Queue: Stephen Martinis <martiniss@chromium.org>
Reviewed-by: default avatarJohn Budorick <jbudorick@chromium.org>
Reviewed-by: default avatarBen Pastene <bpastene@chromium.org>
Reviewed-by: default avatarKenneth Russell <kbr@chromium.org>
Cr-Commit-Position: refs/heads/master@{#592646}
parent 16355cba
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -409,7 +409,7 @@ class BBJSONGenerator(object): ...@@ -409,7 +409,7 @@ class BBJSONGenerator(object):
if 'hard_timeout' in swarming_dict: if 'hard_timeout' in swarming_dict:
if swarming_dict['hard_timeout'] == 0: # pragma: no cover if swarming_dict['hard_timeout'] == 0: # pragma: no cover
del swarming_dict['hard_timeout'] # pragma: no cover del swarming_dict['hard_timeout'] # pragma: no cover
if not swarming_dict['can_use_on_swarming_builders']: if not swarming_dict.get('can_use_on_swarming_builders', False):
# Remove all other keys. # Remove all other keys.
for k in swarming_dict.keys(): # pragma: no cover for k in swarming_dict.keys(): # pragma: no cover
if k != 'can_use_on_swarming_builders': # pragma: no cover if k != 'can_use_on_swarming_builders': # pragma: no cover
......
...@@ -25,4 +25,30 @@ ...@@ -25,4 +25,30 @@
'os': 'Ubuntu-14.04', 'os': 'Ubuntu-14.04',
} }
}, },
'mac_10.10': {
'dimensions': {
'os': 'Mac-10.10',
}
},
'mac_10.11': {
'dimensions': {
'os': 'Mac-10.11',
}
},
'mac_10.13': {
'dimensions': {
'os': 'Mac-10.13',
}
},
'mac_mini_10.12': {
'dimensions': {
'gpu': '8086:0a2e',
'os': 'Mac-10.12.6',
}
},
'no_gpu': {
'dimensions': {
'gpu': 'none',
}
},
} }
...@@ -3074,32 +3074,39 @@ ...@@ -3074,32 +3074,39 @@
] ]
}, },
'Mac10.10 Tests': { 'Mac10.10 Tests': {
'swarming_mixins': [
'mac_10.10',
'no_gpu',
],
'test_suites': { 'test_suites': {
'gtest_tests': 'chromium_mac_gtests', 'gtest_tests': 'chromium_mac_gtests',
'isolated_scripts': 'chromium_rel_isolated_scripts', 'isolated_scripts': 'chromium_rel_isolated_scripts',
}, },
}, },
'Mac10.11 Tests': { 'Mac10.11 Tests': {
'swarming_mixins': [
'mac_10.11',
'no_gpu',
],
'test_suites': { 'test_suites': {
'gtest_tests': 'chromium_mac_gtests', 'gtest_tests': 'chromium_mac_gtests',
'isolated_scripts': 'chromium_rel_isolated_scripts', 'isolated_scripts': 'chromium_rel_isolated_scripts',
}, },
}, },
'Mac10.12 Tests': { 'Mac10.12 Tests': {
'swarming': { 'swarming_mixins': [
'dimension_sets': [ 'mac_mini_10.12',
{ ],
'gpu': '8086:0a2e',
'os': 'Mac-10.12.6',
},
],
},
'test_suites': { 'test_suites': {
'gtest_tests': 'chromium_mac_gtests', 'gtest_tests': 'chromium_mac_gtests',
'isolated_scripts': 'chromium_rel_isolated_scripts', 'isolated_scripts': 'chromium_rel_isolated_scripts',
}, },
}, },
'Mac10.13 Tests': { 'Mac10.13 Tests': {
'swarming_mixins': [
'mac_10.13',
'no_gpu',
],
'test_suites': { 'test_suites': {
'gtest_tests': 'chromium_mac_gtests', 'gtest_tests': 'chromium_mac_gtests',
'isolated_scripts': 'chromium_rel_isolated_scripts', 'isolated_scripts': 'chromium_rel_isolated_scripts',
...@@ -3107,6 +3114,10 @@ ...@@ -3107,6 +3114,10 @@
}, },
}, },
'Mac10.13 Tests (dbg)': { 'Mac10.13 Tests (dbg)': {
'swarming_mixins': [
'mac_10.13',
'no_gpu',
],
'test_suites': { 'test_suites': {
'gtest_tests': 'chromium_mac_gtests', 'gtest_tests': 'chromium_mac_gtests',
'isolated_scripts': 'chromium_dbg_isolated_scripts', 'isolated_scripts': 'chromium_dbg_isolated_scripts',
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment