diff --git a/src/deadline_test_fixtures/deadline/worker.py b/src/deadline_test_fixtures/deadline/worker.py index 30fe46f..da3e651 100644 --- a/src/deadline_test_fixtures/deadline/worker.py +++ b/src/deadline_test_fixtures/deadline/worker.py @@ -453,7 +453,7 @@ def configure_worker_common(self, *, config: DeadlineWorkerConfiguration) -> str This cannot assume that the agent user exists. """ - cmds = [] + cmds = ["$ErrorActionPreference = 'Stop'"] if config.service_model_path: cmds.append( diff --git a/src/deadline_test_fixtures/fixtures.py b/src/deadline_test_fixtures/fixtures.py index 3931c5b..3999008 100644 --- a/src/deadline_test_fixtures/fixtures.py +++ b/src/deadline_test_fixtures/fixtures.py @@ -448,7 +448,8 @@ def worker_config( dest_path = posixpath.join("/tmp", os.path.basename(resolved_whl_path)) else: dest_path = posixpath.join( - "$env:USERPROFILE\\AppData\\Local\\Temp", os.path.basename(resolved_whl_path) + "C:\\Windows\\System32\\Config\\systemprofile\\AppData\\Local\\Temp", + os.path.basename(resolved_whl_path), ) file_mappings = [(resolved_whl_path, dest_path)] @@ -472,7 +473,9 @@ def worker_config( if operating_system.name == "AL2023": dst_path = posixpath.join("/tmp", src_path.name) else: - dst_path = posixpath.join("$env:USERPROFILE\\AppData\\Local\\Temp", src_path.name) + dst_path = posixpath.join( + "C:\\Windows\\System32\\Config\\systemprofile\\AppData\\Local\\Temp", src_path.name + ) LOG.info(f"The service model will be copied to {dst_path} on the Worker environment") file_mappings.append((str(src_path), dst_path))