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>
This commit is contained in:
parent
917da19eae
commit
556f3cbaaa
|
@ -1896,9 +1896,9 @@ class FilterBuilder(CMake):
|
||||||
filter_data.update(self.defconfig)
|
filter_data.update(self.defconfig)
|
||||||
filter_data.update(self.cmake_cache)
|
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:
|
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")])
|
edt = edtlib.EDT(dts_path, [os.path.join(ZEPHYR_BASE, "dts", "bindings")])
|
||||||
res = expr_parser.parse(self.testcase.tc_filter, filter_data, edt)
|
res = expr_parser.parse(self.testcase.tc_filter, filter_data, edt)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue