From c743821f964412c8295364fbb7842c9951da9885 Mon Sep 17 00:00:00 2001 From: Maciej Perkowski Date: Mon, 9 Sep 2024 12:39:08 +0200 Subject: [PATCH] twister: fix dts path for module Fixes twister with modules (TypeError for undefined dts_root) Signed-off-by: Maciej Perkowski --- scripts/pylib/twister/twisterlib/environment.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/pylib/twister/twisterlib/environment.py b/scripts/pylib/twister/twisterlib/environment.py index 9de4b3da5c4..368499fa7e9 100644 --- a/scripts/pylib/twister/twisterlib/environment.py +++ b/scripts/pylib/twister/twisterlib/environment.py @@ -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: