Bug 1419182 - Remove unused required keys feature; r?build draft
authorGregory Szorc <gps@mozilla.com>
Mon, 20 Nov 2017 14:06:35 -0800
changeset 700830 847e262f6af3b9fe2f1e4880ac5206790e25dbd6
parent 700576 5c48b5edfc4ca945a2eaa5896454f3f4efa9052a
child 700831 88667475c01c4a458c42b3f93e592c2c24b4f2eb
push id89987
push userbmo:gps@mozilla.com
push dateMon, 20 Nov 2017 23:19:57 +0000
Bug 1419182 - Remove unused required keys feature; r?build Nobody passes in the "required" argument. Remove it and functionality related to it. MozReview-Commit-ID: IB8s4CiDy6a
--- a/build/compare-mozconfig/compare-mozconfigs.py
+++ b/build/compare-mozconfig/compare-mozconfigs.py
@@ -31,29 +31,21 @@ def make_hg_url(hgHost, repoPath, protoc
             return repo
             return '/'.join([p.strip('/') for p in [repo, 'rev', revision]])
         assert revision
         return '/'.join([p.strip('/') for p in [repo, 'raw-file', revision,
-def readConfig(configfile, keys=[], required=[]):
+def readConfig(configfile, keys=[]):
     c = {}
     execfile(configfile, c)
     for k in keys:
         c = c[k]
-    items = c.keys()
-    err = False
-    for key in required:
-        if key not in items:
-            err = True
-            log.error("Required item `%s' missing from %s" % (key, c))
-    if err:
-        raise ConfigError("Missing at least one item in config, see above")
     return c
 def verify_mozconfigs(mozconfig_pair, nightly_mozconfig_pair, platform,
     """Compares mozconfig to nightly_mozconfig and compare to an optional
     whitelist of known differences. mozconfig_pair and nightly_mozconfig_pair
     are pairs containing the mozconfig's identifier and the list of lines in
     the mozconfig."""