Bug 1347698 - Add a tag for taskcluster reftest jobs r?dustin draft
authorWilliam Lachance <wlachance@mozilla.com>
Wed, 15 Mar 2017 17:52:11 -0400
changeset 500767 076207aacf1fe0cd4b63dd9eb66cff82e3b561f5
parent 499337 8c89d1991786625a64d868798281610872a2bc26
child 500768 c3f622a06eaa258f4296824354d64003c7dbacfb
push id49795
push userwlachance@mozilla.com
push dateFri, 17 Mar 2017 17:20:17 +0000
reviewersdustin
bugs1347698
milestone55.0a1
Bug 1347698 - Add a tag for taskcluster reftest jobs r?dustin MozReview-Commit-ID: JvBywJUgmkh
taskcluster/taskgraph/transforms/tests.py
--- a/taskcluster/taskgraph/transforms/tests.py
+++ b/taskcluster/taskgraph/transforms/tests.py
@@ -595,20 +595,21 @@ def remove_linux_pgo_try_talos(config, t
             and test['suite'] == 'talos'
             and config.params['project'] == 'try'
         )
     for test in filter(predicate, tests):
         yield test
 
 
 @transforms.add
-def set_mochitest_test_type(config, tests):
+def set_test_type(config, tests):
     for test in tests:
-        if 'mochitest' in test['suite']:
-            test.setdefault('tags', {})['test-type'] = 'mochitest'
+        for test_type in ['mochitest', 'reftest']:
+            if test_type in test['suite'] and 'web-platform' not in test['suite']:
+                test.setdefault('tags', {})['test-type'] = test_type
         yield test
 
 
 @transforms.add
 def make_job_description(config, tests):
     """Convert *test* descriptions to *job* descriptions (input to
     taskgraph.transforms.job)"""