From 8370b5002ca074c21168df0835caf6c011427cee Mon Sep 17 00:00:00 2001 From: Petr Hracek Date: Fri, 19 Jul 2024 12:23:58 +0200 Subject: [PATCH] Use VERSION instead of SINGLE_VERSION, like on whole org (#73) Signed-off-by: Petr "Stone" Hracek --- container_ci_suite/utils.py | 4 ++-- tests/test_utils.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/container_ci_suite/utils.py b/container_ci_suite/utils.py index fd74f57..1580f17 100644 --- a/container_ci_suite/utils.py +++ b/container_ci_suite/utils.py @@ -245,8 +245,8 @@ def check_variables() -> bool: if not os.getenv("IMAGE_NAME", None): print("Make sure IMAGE_NAME is defined") ret_value = False - if not os.getenv("SINGLE_VERSION"): - print("Make sure SINGLE_VERSION is defined") + if not os.getenv("VERSION"): + print("Make sure VERSION is defined") ret_value = False if not os.getenv("OS"): print("Make sure OS is defined") diff --git a/tests/test_utils.py b/tests/test_utils.py index bd53b02..50dcd5c 100644 --- a/tests/test_utils.py +++ b/tests/test_utils.py @@ -111,7 +111,7 @@ def test_get_env_from_s2i_args(self, s2i_args, expected_output): ) def test_check_variables(self, image_name, version, os_name, expected_output): os.environ["IMAGE_NAME"] = image_name - os.environ["SINGLE_VERSION"] = version + os.environ["VERSION"] = version os.environ["OS"] = os_name assert utils.check_variables() == expected_output