diff --git a/tests/integration/partial/test_epi.py b/tests/integration/partial/test_epi.py index 2858e096eee642ea9eb977072f68c2f68d6bc12c..f644e099dd2baf2bebab23855f48aed0fdd45132 100644 --- a/tests/integration/partial/test_epi.py +++ b/tests/integration/partial/test_epi.py @@ -28,12 +28,15 @@ class TestEpi(unittest.TestCase): default_config = IntegrationTestUtils.DEFAULT_CONFIG_FILE_PATH default_config_dict: dict = IntegrationTestUtils.load_json_file(default_config) run_dict: dict = copy.deepcopy(default_config_dict) - TestEpi.TEST_OUT_PATH = run_dict['WorkspacePathout'] + prefix + os.sep + TestEpi.TEST_OUT_PATH = IntegrationTestUtils.TEST_WORKSPACE_PATH + prefix + os.sep run_dict['WorkspacePathout'] = TestEpi.TEST_OUT_PATH run_dict['WorkspacePath'] = TestEpi.TEST_OUT_PATH run_dict['ServerName'] = '' # nothing, as local machine - IntegrationTestUtils.write_json_file(run_dict, IntegrationTestUtils.TEMP_CONFIG_FILE_NAME) + os.makedirs(TestEpi.TEST_OUT_PATH, exist_ok = True) + IntegrationTestUtils.TEMP_CONFIG_FILE_NAME = TestEpi.TEST_OUT_PATH + "temp_config.json" + name = IntegrationTestUtils.TEMP_CONFIG_FILE_NAME + IntegrationTestUtils.write_json_file(run_dict, name) @staticmethod