twister: fix dts path for module

Fixes twister with modules (TypeError for undefined dts_root)

Signed-off-by: Maciej Perkowski <Maciej.Perkowski@nordicsemi.no>
This commit is contained in:
Maciej Perkowski 2024-09-09 12:39:08 +02:00 committed by Carles Cufí
commit c743821f96

View file

@ -976,7 +976,7 @@ class TwisterEnv:
if soc_root:
self.soc_roots.append(os.path.join(module.project, soc_root))
dts_root = module.meta.get("build", {}).get("settings", {}).get("dts_root")
if soc_root:
if dts_root:
self.dts_roots.append(os.path.join(module.project, dts_root))
arch_root = module.meta.get("build", {}).get("settings", {}).get("arch_root")
if arch_root: