diff options
Diffstat (limited to 'scripts/testing/tests/test_boot.py')
| -rw-r--r-- | scripts/testing/tests/test_boot.py | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/scripts/testing/tests/test_boot.py b/scripts/testing/tests/test_boot.py index c8895ae..fdbe7cb 100644 --- a/scripts/testing/tests/test_boot.py +++ b/scripts/testing/tests/test_boot.py @@ -28,10 +28,14 @@ def test_mkinitcpio_hooks(host, zfs_root): @pytest.mark.attribution("archsetup") def test_console_font_in_initramfs(host): - out = host.run( - "lsinitcpio /boot/initramfs-linux.img 2>/dev/null | grep -cE 'consolefont.psf|ter-'" - ) - assert int((out.stdout.strip() or "0")) > 0, "console font not found in initramfs" + # Pick the main initramfs (this fleet runs linux-lts, so the name is + # initramfs-linux-lts.img, not initramfs-linux.img); skip the fallback image. + img = host.run( + "ls /boot/initramfs-*.img 2>/dev/null | grep -v fallback | head -1" + ).stdout.strip() + assert img, "no initramfs image found under /boot" + out = host.run("lsinitcpio %s 2>/dev/null | grep -cE 'consolefont.psf|ter-'" % img) + assert int((out.stdout.strip() or "0")) > 0, "console font not found in %s" % img def test_nvme_module_when_nvme_present(host, has_nvme): |
