1
0
mirror of https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git synced 2025-02-15 12:04:31 +00:00

Allow code name Adams for Fedora 42 in fedora_release file.

Normally, the /etc/fedora-release file shows a text consisting
of "Fedora release" with the version number and a spelt out
version number in brackets.

For Fedora 42, the code name Adams should be used instead to
celebrate Douglas Adams's number of the universe.

Fixes: https://pagure.io/fedora-qa/os-autoinst-distri-fedora/issue/360
This commit is contained in:
Lukáš Růžička 2025-02-13 11:24:10 +01:00
parent a55263a637
commit c1240ba0cd

View File

@ -27,6 +27,12 @@ sub run {
# Create the expected content of the release file
# and compare it with its real counterpart.
my $expected = "Fedora release $expectver ($speltnum)";
# On Fedora 42, the code name Adams was introduced to
# celebrate the number 42 with regards to Douglas Adams
# Hitchhiker's Guide to Galaxy and the universal number.
if ($expectver == 42) {
$expected = "Fedora release 42 (Adams)";
}
validate_script_output 'cat /etc/fedora-release', sub { $_ eq $expected };
}