Skip to content

Commit a05ee1d

Browse files
nashifcarlescufi
authored andcommitted
[nrf fromtree] twister: oot soc: set soc_root using Path
Set soc_root using Path to avoid wrong generated path in the list of soc_roots and other roots read from module.yml file Fixes #80531 Signed-off-by: Anas Nashif <[email protected]> (cherry picked from commit 2c43d7f)
1 parent c93664c commit a05ee1d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

scripts/pylib/twister/twisterlib/environment.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -972,13 +972,13 @@ def __init__(self, options, default_options=None) -> None:
972972
for module in modules:
973973
soc_root = module.meta.get("build", {}).get("settings", {}).get("soc_root")
974974
if soc_root:
975-
self.soc_roots.append(os.path.join(module.project, soc_root))
975+
self.soc_roots.append(Path(module.project) / Path(soc_root))
976976
dts_root = module.meta.get("build", {}).get("settings", {}).get("dts_root")
977977
if dts_root:
978-
self.dts_roots.append(os.path.join(module.project, dts_root))
978+
self.dts_roots.append(Path(module.project) / Path(dts_root))
979979
arch_root = module.meta.get("build", {}).get("settings", {}).get("arch_root")
980980
if arch_root:
981-
self.arch_roots.append(os.path.join(module.project, arch_root))
981+
self.arch_roots.append(Path(module.project) / Path(arch_root))
982982

983983
self.hwm = None
984984

0 commit comments

Comments
 (0)