Skip to content

Commit 5d2f6c6

Browse files
gicmoachilleas-k
authored andcommitted
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.
1 parent 30f11bc commit 5d2f6c6

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

test/integration/test_koji.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,12 @@ def test_compose(self):
8383

8484
name = info["ID"] # 'fedora' or 'rhel'
8585
version = info["VERSION_ID"] # <major> or <major>.<minor>
86-
major = version.split(".")[0]
8786

88-
distro = f"{name}-{major}"
87+
comps = version.split(".")
88+
major = comps[0]
89+
minor = comps[1] if len(comps) > 1 else ""
90+
91+
distro = f"{name}-{major}{minor}"
8992
tag = f"{name}{major}-candidate" # fedora<major> or rhel<major>
9093
arch = platform.machine()
9194

0 commit comments

Comments
 (0)