From a987e3ddc6aa75e4d2d18e5478828f5e8a24b54c Mon Sep 17 00:00:00 2001 From: Nate Coraor Date: Wed, 19 Feb 2025 13:09:00 -0500 Subject: [PATCH] Fix test --- test/unit/app/jobs/test_command_factory.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/test/unit/app/jobs/test_command_factory.py b/test/unit/app/jobs/test_command_factory.py index 75f59e51446..725157709c3 100644 --- a/test/unit/app/jobs/test_command_factory.py +++ b/test/unit/app/jobs/test_command_factory.py @@ -9,7 +9,6 @@ from typing import ( from galaxy.jobs.command_factory import ( build_command, - PREPARE_DIRS, SETUP_GALAXY_FOR_METADATA, ) from galaxy.tool_util.deps.container_classes import TRAP_KILL_CONTAINER @@ -188,7 +187,7 @@ class TestCommandFactory(TestCase): return build_command(**kwds) def _surround_command(self, command, post_command=""): - command = f'''{PREPARE_DIRS};{self.TEE_LOG}{command} {self.CAPTURE_AND_REDIRECT}{post_command}; sh -c "exit $return_code"''' + command = f'''cd working;{self.TEE_LOG}{command} {self.CAPTURE_AND_REDIRECT}{post_command}; sh -c "exit $return_code"''' return command.replace("galaxy_1.ec", os.path.join(self.job_wrapper.working_directory, "galaxy_1.ec"), 1)