test: support slow test-ukify on Debian/Ubuntu

Kernels are installed in /boot/ so find them there too
This commit is contained in:
Luca Boccassi
2025-01-26 17:35:06 +00:00
parent bcca98c632
commit 25a253084a

View File

@@ -411,6 +411,8 @@ def test_help_error(capsys):
@pytest.fixture(scope='session')
def kernel_initrd():
items = sorted(glob.glob('/lib/modules/*/vmlinuz'))
if not items:
items = sorted(glob.glob('/boot/vmlinuz*'))
if not items:
return None