Modify version string on CANNED environments
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:
parent
fcdd5523e5
commit
97ad365739
1 changed files with 3 additions and 4 deletions
|
|
@ -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
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue