diff --git a/python/tests/share/test_shell_jobs.py b/python/tests/share/test_shell_jobs.py index 4089a30478..da61e794aa 100644 --- a/python/tests/share/test_shell_jobs.py +++ b/python/tests/share/test_shell_jobs.py @@ -6,7 +6,6 @@ class TestSiteConfigShellJobs(ResTest): def test_shell_script_jobs_availability(self): config_file = self.createTestPath("local/simple_config/minimum_config") - share_path = self.createSharePath("ert/shell_scripts") res_config = ResConfig(config_file) site_config = res_config.site_config @@ -15,21 +14,20 @@ def test_shell_script_jobs_availability(self): fm_shell_jobs = {} for job in installed_jobs: exe = job.get_executable() - if exe.startswith(share_path): + if "shell_scripts" in exe: fm_shell_jobs[job.name().lower()] = exe list_from_content = res_config.ert_workflow_list wf_shell_jobs = {} for wf_name in list_from_content.getJobNames(): exe = list_from_content.getJob(wf_name).executable() - if exe and exe.startswith(share_path): + if exe and "shell_scripts" in exe: wf_shell_jobs[wf_name] = exe assert fm_shell_jobs == wf_shell_jobs def test_shell_script_jobs_names(self): config_file = self.createTestPath("local/simple_config/minimum_config") - share_path = self.createSharePath("ert/shell_scripts") shell_job_names = [ "delete_file", @@ -48,7 +46,7 @@ def test_shell_script_jobs_names(self): list_from_content = res_config.ert_workflow_list for wf_name in list_from_content.getJobNames(): exe = list_from_content.getJob(wf_name).executable() - if exe and exe.startswith(share_path): + if exe and "shell_scripts" in exe: assert wf_name in shell_job_names found_jobs.add(wf_name)