From 5d2f6c6daab70fb711d24479765cbc9977236126 Mon Sep 17 00:00:00 2001 From: Christian Kellner Date: Tue, 15 Feb 2022 12:22:23 +0000 Subject: [PATCH] test/integration: properly match distro to host When we are on an RHEL 8.x host we need to supply `rhel-8x` as target distro. The previous code just used the major version so we always built `rhel-8`, i.e. RHEL 8.3. --- test/integration/test_koji.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/test/integration/test_koji.py b/test/integration/test_koji.py index df548cb..29a6c9e 100644 --- a/test/integration/test_koji.py +++ b/test/integration/test_koji.py @@ -83,9 +83,12 @@ class TestIntegration(unittest.TestCase): name = info["ID"] # 'fedora' or 'rhel' version = info["VERSION_ID"] # or . - major = version.split(".")[0] - distro = f"{name}-{major}" + comps = version.split(".") + major = comps[0] + minor = comps[1] if len(comps) > 1 else "" + + distro = f"{name}-{major}{minor}" tag = f"{name}{major}-candidate" # fedora or rhel arch = platform.machine()