Skip to content

Commit

Permalink
sanitycheck: deal with board that have no DTS
Browse files Browse the repository at this point in the history
nrf52_bsim does not generate any DTS data to be processed by
sanitycheck, skip filtering if we have no dts data.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
  • Loading branch information
nashif committed Nov 6, 2019
1 parent 917da19 commit 556f3cb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/sanitycheck
Original file line number Diff line number Diff line change
Expand Up @@ -1896,9 +1896,9 @@ class FilterBuilder(CMake):
filter_data.update(self.defconfig)
filter_data.update(self.cmake_cache)

if self.testcase and self.testcase.tc_filter:
dts_path = os.path.join(self.build_dir, "zephyr", self.platform.name + ".dts.pre.tmp")
if self.testcase and self.testcase.tc_filter and os.path.exists(dts_path):
try:
dts_path = os.path.join(self.build_dir, "zephyr", self.platform.name + ".dts.pre.tmp")
edt = edtlib.EDT(dts_path, [os.path.join(ZEPHYR_BASE, "dts", "bindings")])
res = expr_parser.parse(self.testcase.tc_filter, filter_data, edt)

Expand Down

0 comments on commit 556f3cb

Please sign in to comment.