Navigation Menu

Skip to content

Commit

Permalink
sanitycheck: allow blacklisting boards
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
nashif committed Jul 24, 2018
1 parent fbbef6f commit f3d48e1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions scripts/sanity_chk/sanitycheck-platform-schema.yaml
Expand Up @@ -32,6 +32,8 @@ mapping:
type: int
"flash":
type: int
"sanitycheck":
type: bool
"supported":
type: seq
seq:
Expand Down
4 changes: 3 additions & 1 deletion scripts/sanitycheck
Expand Up @@ -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", {})
Expand Down Expand Up @@ -1625,7 +1626,8 @@ class TestSuite:
verbose("Found plaform configuration " + fn)
try:
platform = Platform(fn)
self.platforms.append(platform)
if platform.sanitycheck:
self.platforms.append(platform)
except RuntimeError as e:
error("E: %s: can't load: %s" % (fn, e))
self.load_errors += 1
Expand Down

0 comments on commit f3d48e1

Please sign in to comment.