From e147ff3739d2f6069b26459e0b2e5f8616f8345b Mon Sep 17 00:00:00 2001
From: lb584 <lb584@cam.ac.uk>
Date: Thu, 3 Nov 2022 17:10:56 +0000
Subject: [PATCH] temporary fix to make script stop if a success is detected

---
 coordinator/ProcessorUtils.py      | 4 ++--
 tests/integration/test_env_suit.py | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/coordinator/ProcessorUtils.py b/coordinator/ProcessorUtils.py
index e8ce959..ea8fe8f 100644
--- a/coordinator/ProcessorUtils.py
+++ b/coordinator/ProcessorUtils.py
@@ -169,8 +169,8 @@ def endScript(premature=True):
 
     logger.info(f'--------')
 
-    if __name__ == '__main__':
-        sys.exit()
+    # if __name__ == '__main__':
+    sys.exit()
 
 def endJob(status,ignore_inprogress=False,**kwargs):
 
diff --git a/tests/integration/test_env_suit.py b/tests/integration/test_env_suit.py
index 85085e6..b3a46aa 100644
--- a/tests/integration/test_env_suit.py
+++ b/tests/integration/test_env_suit.py
@@ -20,8 +20,8 @@ class TestEnvSuit(unittest.TestCase):
     @staticmethod
     def write_temp_run_config_file():
         nowstring: str = IntegrationTestUtils.get_now_string()
-        prefix: str = "temp_depo_" + nowstring
-        # prefix: str = ""
+        # prefix: str = "temp_depo_" + nowstring
+        prefix: str = ""
 
         default_config = IntegrationTestUtils.DEFAULT_CONFIG_FILE_PATH
         default_config_dict: dict = IntegrationTestUtils.load_json_file(default_config)
-- 
GitLab