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 type: int
"flash": "flash":
type: int type: int
"sanitycheck":
type: bool
"supported": "supported":
type: seq type: seq
seq: seq:

View file

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