Skip to content

Commit 2c43d7f

Browse files
nashifmmahadevan108
authored andcommitted
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]>
1 parent f277631 commit 2c43d7f

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
@@ -980,13 +980,13 @@ def __init__(self, options, default_options=None) -> None:
980980
for module in modules:
981981
soc_root = module.meta.get("build", {}).get("settings", {}).get("soc_root")
982982
if soc_root:
983-
self.soc_roots.append(os.path.join(module.project, soc_root))
983+
self.soc_roots.append(Path(module.project) / Path(soc_root))
984984
dts_root = module.meta.get("build", {}).get("settings", {}).get("dts_root")
985985
if dts_root:
986-
self.dts_roots.append(os.path.join(module.project, dts_root))
986+
self.dts_roots.append(Path(module.project) / Path(dts_root))
987987
arch_root = module.meta.get("build", {}).get("settings", {}).get("arch_root")
988988
if arch_root:
989-
self.arch_roots.append(os.path.join(module.project, arch_root))
989+
self.arch_roots.append(Path(module.project) / Path(arch_root))
990990

991991
self.hwm = None
992992

0 commit comments

Comments
 (0)