Skip to content

Commit 556f3cb

Browse files
committed
sanitycheck: deal with board that have no DTS
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 <[email protected]>
1 parent 917da19 commit 556f3cb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/sanitycheck

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1896,9 +1896,9 @@ class FilterBuilder(CMake):
18961896
filter_data.update(self.defconfig)
18971897
filter_data.update(self.cmake_cache)
18981898

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

0 commit comments

Comments
 (0)