From: Daan De Meyer Date: Wed, 20 May 2026 08:51:56 +0000 (+0000) Subject: test-ukify: Skip kernel images we can't access X-Git-Tag: v261-rc1~64^2~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b01dcb3a810fcbf7513490c5167024ce4c6b1e59;p=thirdparty%2Fsystemd.git test-ukify: Skip kernel images we can't access --- diff --git a/src/ukify/test/test_ukify.py b/src/ukify/test/test_ukify.py index 0fe27601f15..11f843ddb60 100755 --- a/src/ukify/test/test_ukify.py +++ b/src/ukify/test/test_ukify.py @@ -456,6 +456,9 @@ def kernel_initrd(): items = sorted(glob.glob('/lib/modules/*/vmlinuz')) if not items: items = sorted(glob.glob('/boot/vmlinuz*')) + # Drop entries we cannot read (e.g. /boot/vmlinuz.old with mode 0600 on + # GitHub-hosted runners), the test opens the file later and would fail. + items = [p for p in items if os.access(p, os.R_OK)] if not items: return None