sanitycheck: don't require arch.ini blocks for every platform

If the arch ini file doesn't have a specific block for the platform,
just assume all defaults.

Change-Id: Id6ab1ede8936bdd6006a5c4fd2f9a4f6aaf42478
Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
This commit is contained in:
Andrew Boie 2016-03-22 10:29:14 -07:00 committed by Gerrit Code Review
commit e57a1e5622

View file

@ -831,7 +831,8 @@ class SanityConfigParser:
cp = self.cp
if not cp.has_section(section):
raise ConfigurationError(self.filename, "Missing section '%s'" % section)
# Just fill it with defaults
cp.add_section(section)
for k, v in cp.items(section):
if k not in valid_keys: