Bug 1410133: Allow having all test-sets on a given platform; r?dustin draft
authorTom Prince <mozilla@hocat.ca>
Wed, 18 Oct 2017 20:21:30 -0600
changeset 683364 7c3985a2807efd8ee0a75017119cb8c288e7239f
parent 683249 31af3ee0436093bfd3300e9002f1118df0420309
child 736619 e137be28ebe47455bd6eef6b7fcf33b68ac83863
push id85346
push userbmo:mozilla@hocat.ca
push dateThu, 19 Oct 2017 15:41:14 +0000
reviewersdustin
bugs1410133
milestone58.0a1
Bug 1410133: Allow having all test-sets on a given platform; r?dustin MozReview-Commit-ID: DmQF7duvCro
taskcluster/taskgraph/loader/test.py
--- a/taskcluster/taskgraph/loader/test.py
+++ b/taskcluster/taskgraph/loader/test.py
@@ -117,17 +117,17 @@ def get_test_platforms(test_platforms_cf
 def expand_tests(test_sets_cfg, test_platforms):
     """Expand the test sets in `test_platforms` out to sets of test names.
     Returns a dictionary like `get_test_platforms`, with an additional
     `test-names` key for each test platform, containing a set of test
     names."""
     rv = {}
     for test_platform, cfg in test_platforms.iteritems():
         test_sets = cfg['test-sets']
-        if not set(test_sets) < set(test_sets_cfg):
+        if not set(test_sets) <= set(test_sets_cfg):
             raise Exception(
                 "Test sets {} for test platform {} are not defined".format(
                     ', '.join(test_sets), test_platform))
         test_names = set()
         for test_set in test_sets:
             test_names.update(test_sets_cfg[test_set])
         rv[test_platform] = cfg.copy()
         rv[test_platform]['test-names'] = test_names