From e4d9745d0b68ae01fe7035ab5b96ed23e80f782a Mon Sep 17 00:00:00 2001 From: lb584 <lb584@cam.ac.uk> Date: Wed, 24 Jan 2024 13:43:18 +0000 Subject: [PATCH] survey now looks for STATUS_SUCCESS* to cover STATUS_SUCCESS_WITH_WARNING outcomes --- tests/integration/test_suites/survey_test_suite.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/integration/test_suites/survey_test_suite.py b/tests/integration/test_suites/survey_test_suite.py index 83ef237..4406f03 100644 --- a/tests/integration/test_suites/survey_test_suite.py +++ b/tests/integration/test_suites/survey_test_suite.py @@ -1,4 +1,5 @@ import abc +import glob import os import unittest @@ -25,8 +26,8 @@ class BaseSurveyTestSuite: def test_standard_run_input_status_success(self): status_file_path = os.path.join(IntegrationTestUtils.TEST_OUT_PATH, - IntegrationTestUtils.TEST_JOB_DIR, "STATUS_SUCCESS") - success_file_exists: bool = os.path.isfile(status_file_path) + IntegrationTestUtils.TEST_JOB_DIR, "STATUS_SUCCESS*") + success_file_exists: bool = len(glob.glob(status_file_path)) > 0 self.assertTrue(success_file_exists) -- GitLab