test: allow dangling anaconda WebUI branding symlinks in testBranding

The anaconda WebUI branding symlinks point to files from fedora-logos.
Fedora < 46 does not ship those files, so the symlinks are
expected to dangle there.
This commit is contained in:
Katerina Koukiou 2026-10-29 13:43:42 +01:00 committed by Katerina Koukiou
parent cf4380476b
commit 7ccdc449f8

View file

@ -1300,7 +1300,12 @@ until pgrep -f '^(/usr/[^ ]+/[^ /]*python[^ /]* )?/usr/bin/cockpit-bridge'; do s
# the container.
if not m.ws_container:
# make sure that there are no broken links in "our" directory
self.assertEqual(m.execute(f'find {branddir} -xtype l'), '')
find_broken = f'find {branddir} -xtype l'
# anaconda branding symlinks dangle on Fedora < 46 where fedora-logos
# does not ship the target files yet
if m.image in ["fedora-43", "fedora-44", "fedora-45"]:
find_broken += ' -not -name "anaconda-branding*" -not -name "webui-header-logo.png"'
self.assertEqual(m.execute(find_broken), '')
# branding.css undergoes variable substitution based on the content of
# /usr/lib/os-release. Perform the substitution for ourselves for