]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test: support slow test-ukify on Debian/Ubuntu
authorLuca Boccassi <luca.boccassi@gmail.com>
Sun, 26 Jan 2025 17:35:06 +0000 (17:35 +0000)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Sat, 8 Feb 2025 06:51:06 +0000 (15:51 +0900)
Kernels are installed in /boot/ so find them there too

(cherry picked from commit 25a253084a16dcc077592ff85d62f69fa940d1de)

src/ukify/test/test_ukify.py

index 6c427623ea3af3b6764552199f8292d4cbc1132c..61d465fca152e5d1094bc7bf5cebc55d1eb1341a 100755 (executable)
@@ -408,6 +408,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