From 54f9c936849df9765c7eaeb41bdb33666ab67881 Mon Sep 17 00:00:00 2001 From: Sondre Sortland Date: Thu, 12 Nov 2020 13:01:17 +0100 Subject: [PATCH] Rename all shell workflows to uppercase --- python/tests/share/test_shell_jobs.py | 20 +++++++++---------- .../{careful_copy_file => CAREFUL_COPY_FILE} | 0 .../shell/{copy_directory => COPY_DIRECTORY} | 0 .../jobs/shell/{copy_file => COPY_FILE} | 0 .../{delete_directory => DELETE_DIRECTORY} | 0 .../jobs/shell/{delete_file => DELETE_FILE} | 0 .../shell/{make_directory => MAKE_DIRECTORY} | 0 .../jobs/shell/{make_symlink => MAKE_SYMLINK} | 0 .../jobs/shell/{move_file => MOVE_FILE} | 0 .../workflows/jobs/shell/{symlink => SYMLINK} | 0 10 files changed, 10 insertions(+), 10 deletions(-) rename share/ert/workflows/jobs/shell/{careful_copy_file => CAREFUL_COPY_FILE} (100%) rename share/ert/workflows/jobs/shell/{copy_directory => COPY_DIRECTORY} (100%) rename share/ert/workflows/jobs/shell/{copy_file => COPY_FILE} (100%) rename share/ert/workflows/jobs/shell/{delete_directory => DELETE_DIRECTORY} (100%) rename share/ert/workflows/jobs/shell/{delete_file => DELETE_FILE} (100%) rename share/ert/workflows/jobs/shell/{make_directory => MAKE_DIRECTORY} (100%) rename share/ert/workflows/jobs/shell/{make_symlink => MAKE_SYMLINK} (100%) rename share/ert/workflows/jobs/shell/{move_file => MOVE_FILE} (100%) rename share/ert/workflows/jobs/shell/{symlink => SYMLINK} (100%) diff --git a/python/tests/share/test_shell_jobs.py b/python/tests/share/test_shell_jobs.py index da61e794aa..64a8c52d9d 100644 --- a/python/tests/share/test_shell_jobs.py +++ b/python/tests/share/test_shell_jobs.py @@ -15,7 +15,7 @@ def test_shell_script_jobs_availability(self): for job in installed_jobs: exe = job.get_executable() if "shell_scripts" in exe: - fm_shell_jobs[job.name().lower()] = exe + fm_shell_jobs[job.name().upper()] = exe list_from_content = res_config.ert_workflow_list wf_shell_jobs = {} @@ -30,15 +30,15 @@ def test_shell_script_jobs_names(self): config_file = self.createTestPath("local/simple_config/minimum_config") shell_job_names = [ - "delete_file", - "delete_directory", - "copy_directory", - "make_symlink", - "move_file", - "make_directory", - "careful_copy_file", - "symlink", - "copy_file", + "DELETE_FILE", + "DELETE_DIRECTORY", + "COPY_DIRECTORY", + "MAKE_SYMLINK", + "MOVE_FILE", + "MAKE_DIRECTORY", + "CAREFUL_COPY_FILE", + "SYMLINK", + "COPY_FILE", ] res_config = ResConfig(config_file) diff --git a/share/ert/workflows/jobs/shell/careful_copy_file b/share/ert/workflows/jobs/shell/CAREFUL_COPY_FILE similarity index 100% rename from share/ert/workflows/jobs/shell/careful_copy_file rename to share/ert/workflows/jobs/shell/CAREFUL_COPY_FILE diff --git a/share/ert/workflows/jobs/shell/copy_directory b/share/ert/workflows/jobs/shell/COPY_DIRECTORY similarity index 100% rename from share/ert/workflows/jobs/shell/copy_directory rename to share/ert/workflows/jobs/shell/COPY_DIRECTORY diff --git a/share/ert/workflows/jobs/shell/copy_file b/share/ert/workflows/jobs/shell/COPY_FILE similarity index 100% rename from share/ert/workflows/jobs/shell/copy_file rename to share/ert/workflows/jobs/shell/COPY_FILE diff --git a/share/ert/workflows/jobs/shell/delete_directory b/share/ert/workflows/jobs/shell/DELETE_DIRECTORY similarity index 100% rename from share/ert/workflows/jobs/shell/delete_directory rename to share/ert/workflows/jobs/shell/DELETE_DIRECTORY diff --git a/share/ert/workflows/jobs/shell/delete_file b/share/ert/workflows/jobs/shell/DELETE_FILE similarity index 100% rename from share/ert/workflows/jobs/shell/delete_file rename to share/ert/workflows/jobs/shell/DELETE_FILE diff --git a/share/ert/workflows/jobs/shell/make_directory b/share/ert/workflows/jobs/shell/MAKE_DIRECTORY similarity index 100% rename from share/ert/workflows/jobs/shell/make_directory rename to share/ert/workflows/jobs/shell/MAKE_DIRECTORY diff --git a/share/ert/workflows/jobs/shell/make_symlink b/share/ert/workflows/jobs/shell/MAKE_SYMLINK similarity index 100% rename from share/ert/workflows/jobs/shell/make_symlink rename to share/ert/workflows/jobs/shell/MAKE_SYMLINK diff --git a/share/ert/workflows/jobs/shell/move_file b/share/ert/workflows/jobs/shell/MOVE_FILE similarity index 100% rename from share/ert/workflows/jobs/shell/move_file rename to share/ert/workflows/jobs/shell/MOVE_FILE diff --git a/share/ert/workflows/jobs/shell/symlink b/share/ert/workflows/jobs/shell/SYMLINK similarity index 100% rename from share/ert/workflows/jobs/shell/symlink rename to share/ert/workflows/jobs/shell/SYMLINK