sanitycheck: allow blacklisting boards

Add new kwyboard to board definition to allow blacklisting boards. This
is needed when a board is broken causing CI to fail without a fix in
sight.

Add:

sanitycheck: false

to the board yaml file to disable the board. By default, the value is
set to true.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
Anas Nashif 2018-07-24 08:14:42 -05:00
commit f3d48e1cce
2 changed files with 5 additions and 1 deletions

View file

@ -32,6 +32,8 @@ mapping:
type: int
"flash":
type: int
"sanitycheck":
type: bool
"supported":
type: seq
seq:

View file

@ -1311,6 +1311,7 @@ class Platform:
data = scp.data
self.name = data['identifier']
self.sanitycheck = data.get("sanitycheck", True)
# if no RAM size is specified by the board, take a default of 128K
self.ram = data.get("ram", 128)
testing = data.get("testing", {})
@ -1625,6 +1626,7 @@ class TestSuite:
verbose("Found plaform configuration " + fn)
try:
platform = Platform(fn)
if platform.sanitycheck:
self.platforms.append(platform)
except RuntimeError as e:
error("E: %s: can't load: %s" % (fn, e))