Bug 1508253 - Fix wpt metadata update, r=gsnedders
authorJames Graham <james@hoppipolla.co.uk>
Mon, 19 Nov 2018 13:08:03 +0000
changeset 503426 58d0df7129383a0984e87ea333d6b6ea198a8b55
parent 503425 f3c83031b453d733501d8db59ebd17e78e191f35
child 503427 4ef55dde9b9310f0f1060943700a76955b94d688
push id10290
push userffxbld-merge
push dateMon, 03 Dec 2018 16:23:23 +0000
treeherdermozilla-beta@700bed2445e6 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersgsnedders
bugs1508253
milestone65.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1508253 - Fix wpt metadata update, r=gsnedders
testing/web-platform/tests/tools/manifest/item.py
--- a/testing/web-platform/tests/tools/manifest/item.py
+++ b/testing/web-platform/tests/tools/manifest/item.py
@@ -24,17 +24,18 @@ item_types = {}
 
 class ManifestItemMeta(ABCMeta):
     """Custom metaclass that registers all the subclasses in the
     item_types dictionary according to the value of their item_type
     attribute, and otherwise behaves like an ABCMeta."""
 
     def __new__(cls, name, bases, attrs, **kwargs):
         rv = ABCMeta.__new__(cls, name, bases, attrs, **kwargs)
-        item_types[rv.item_type] = rv
+        if rv.item_type:
+            item_types[rv.item_type] = rv
 
         return rv
 
 
 class ManifestItem(object):
     __metaclass__ = ManifestItemMeta
 
     item_type = None