Modify version string on CANNED environments
All checks were successful
CI via Tox / tox (pull_request) Successful in 2m4s
CI via Tox / checkwiki (pull_request) Successful in 49s

Previously, we have modified on the specific name of the test,
which required an extra test to be run with the correct name.

This PR changes the behaviour to modify on CANNED environments,
so the extra test will not be necessary.
This commit is contained in:
Lukáš Růžička 2026-05-13 10:48:04 +02:00
commit 97ad365739

View file

@ -71,10 +71,10 @@ def _uniqueres_replacements(job, tcdict):
if version == "Rawhide":
version = job['settings'].get('RAWREL', '')
# For Fedora Media Writer, version is not enough because we also need to
# to report to the Flathub column (which does not have version in it).
# For Flatpak media_writer test, take "Flathub" instead of version.
# to report to the Flathub column (which does not have version in it), so
# if CANNED is set, let's change the string to "Flathub".
fmw_source = f"Fedora {version}"
if job["test"] == "media_writer_flatpak":
if job["settings"].get('CANNED', ''):
fmw_source = "Flathub"
if arch == "aarch64":
bootmethod = "aarch64"
@ -132,7 +132,6 @@ def _uniqueres_replacements(job, tcdict):
value = value.replace('$VERSION$', version)
value = value.replace('$FMW_SOURCE$', fmw_source)
changed[key] = value
return changed