From b01dcb3a810fcbf7513490c5167024ce4c6b1e59 Mon Sep 17 00:00:00 2001 From: Daan De Meyer Date: Wed, 20 May 2026 08:51:56 +0000 Subject: [PATCH] test-ukify: Skip kernel images we can't access --- src/ukify/test/test_ukify.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/ukify/test/test_ukify.py b/src/ukify/test/test_ukify.py index 0fe27601f1..11f843ddb6 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