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.
This commit is contained in:
parent
30f11bcf16
commit
5d2f6c6daa
1 changed files with 5 additions and 2 deletions
|
|
@ -83,9 +83,12 @@ class TestIntegration(unittest.TestCase):
|
|||
|
||||
name = info["ID"] # 'fedora' or 'rhel'
|
||||
version = info["VERSION_ID"] # <major> or <major>.<minor>
|
||||
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<major> or rhel<major>
|
||||
arch = platform.machine()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue