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 <anas.nashif@intel.com>
diff --git a/scripts/sanitycheck b/scripts/sanitycheck
index 73b87f7..f21ee71 100755
--- a/scripts/sanitycheck
+++ b/scripts/sanitycheck
@@ -1896,9 +1896,9 @@
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)