distros_support.py: always put CentOS Stream at least as Tier 3
We only add to Tier 3 distro versions that ship a version of NM equal or older to the one that we are testing. As CentOS Stream uses "main", no stable version will be tested on it. Force to test CentOS Stream as Tier 3.
This commit is contained in:
@@ -161,6 +161,20 @@ for distro in ci_distros:
|
|||||||
if not tier1_distro or not tier1_version:
|
if not tier1_distro or not tier1_version:
|
||||||
print("Warn: no suitable distro for Tier 1 found", file=sys.stderr)
|
print("Warn: no suitable distro for Tier 1 found", file=sys.stderr)
|
||||||
|
|
||||||
|
# Always add CentOS Stream at least as Tier 3
|
||||||
|
for centos_ver_info in distros_info["centos"]:
|
||||||
|
version = centos_ver_info["version"]
|
||||||
|
found = False
|
||||||
|
|
||||||
|
if tier1_distro == "centos" and tier1_version == version:
|
||||||
|
found = True
|
||||||
|
for tier in (tier2, tier3):
|
||||||
|
if "centos" in tier and version in tier["centos"]:
|
||||||
|
found = True
|
||||||
|
break
|
||||||
|
|
||||||
|
if not found:
|
||||||
|
tier3.setdefault("centos", []).append(version)
|
||||||
|
|
||||||
# Print the config.yml needed for the corresponding stable branch
|
# Print the config.yml needed for the corresponding stable branch
|
||||||
branch = "main" if nm_version == "main" else "nm-" + nm_version.replace(".", "-")
|
branch = "main" if nm_version == "main" else "nm-" + nm_version.replace(".", "-")
|
||||||
|
Reference in New Issue
Block a user