mirror of
https://github.com/morgan9e/systemd
synced 2026-04-14 08:25:20 +09:00
src/ukify/test/test_ukify: fix skipped tests
Some tests are skipped because initrd extracted from bootctl is "/boot/initramfs-5.14.0-284.el9.x86_64.img $tuned_initrd" and not just "/boot/initramfs-5.14.0-284.el9.x86_64.img". Therefore split and remove the additional garbage. Signed-off-by: Emanuele Giuseppe Esposito <eesposit@redhat.com>
This commit is contained in:
@@ -321,7 +321,7 @@ def kernel_initrd():
|
||||
for item in items:
|
||||
try:
|
||||
linux = f"{item['root']}{item['linux']}"
|
||||
initrd = f"{item['root']}{item['initrd'][0]}"
|
||||
initrd = f"{item['root']}{item['initrd'][0].split(' ')[0]}"
|
||||
except (KeyError, IndexError):
|
||||
continue
|
||||
return [linux, initrd]
|
||||
|
||||
Reference in New Issue
Block a user