diff --git a/scripts/pylib/twister/twisterlib.py b/scripts/pylib/twister/twisterlib.py index eaef57399b4..af6a5a035f0 100755 --- a/scripts/pylib/twister/twisterlib.py +++ b/scripts/pylib/twister/twisterlib.py @@ -3904,7 +3904,7 @@ def _create_build_dir_link(self, links_dir_path, instance): significant during building by CMake on Windows OS. """ - os.makedirs(instance.build_dir) + os.makedirs(instance.build_dir, exist_ok=True) link_name = f"test_{self.link_dir_counter}" link_path = os.path.join(links_dir_path, link_name)