From c1240ba0cd6806c1118d928baf7e69591d51e52b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20R=C5=AF=C5=BEi=C4=8Dka?= Date: Thu, 13 Feb 2025 11:24:10 +0100 Subject: [PATCH] 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 --- tests/fedora_release.pm | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/fedora_release.pm b/tests/fedora_release.pm index bf700abb..ed699757 100644 --- a/tests/fedora_release.pm +++ b/tests/fedora_release.pm @@ -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 }; }