Skip to content

Commit

Permalink
Use VERSION instead of SINGLE_VERSION, like on whole org (#73)
Browse files Browse the repository at this point in the history
Signed-off-by: Petr "Stone" Hracek <phracek@redhat.com>
  • Loading branch information
phracek authored Jul 19, 2024
1 parent 8042bcd commit 8370b50
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions container_ci_suite/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
2 changes: 1 addition & 1 deletion tests/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 8370b50

Please sign in to comment.