From: Emanuele Giuseppe Esposito Date: Mon, 8 May 2023 12:41:04 +0000 (-0400) Subject: src/ukify/test/test_ukify: fix skipped tests X-Git-Tag: v254-rc1~510^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4e906270a31ccfe402e4bb645398dd4de6df94cc;p=thirdparty%2Fsystemd.git 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 --- diff --git a/src/ukify/test/test_ukify.py b/src/ukify/test/test_ukify.py index 7af4c7d0c2b..983a67aad6f 100755 --- a/src/ukify/test/test_ukify.py +++ b/src/ukify/test/test_ukify.py @@ -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]