mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 09:13:55 -06:00
tests/functional: convert tests to new archive_extract helper
Replace use of utils.archive_extract and extract_from_deb with the new archive_extract helper. Reviewed-by: Thomas Huth <thuth@redhat.com> Signed-off-by: Daniel P. Berrangé <berrange@redhat.com> Message-ID: <20241217155953.3950506-24-berrange@redhat.com> Signed-off-by: Thomas Huth <thuth@redhat.com>
This commit is contained in:
parent
239fd29d6f
commit
5831ed84e7
37 changed files with 134 additions and 205 deletions
|
@ -30,9 +30,10 @@ class Aarch64Raspi4Machine(LinuxKernelTest):
|
|||
'7c0b16d1853772f6f4c3ca63e789b3b9ff4936efac9c8a01fb0c98c05c7a7648')
|
||||
|
||||
def test_arm_raspi4(self):
|
||||
deb_path = self.ASSET_KERNEL_20190215.fetch()
|
||||
kernel_path = self.extract_from_deb(deb_path, '/boot/kernel8.img')
|
||||
dtb_path = self.extract_from_deb(deb_path, '/boot/bcm2711-rpi-4-b.dtb')
|
||||
kernel_path = self.archive_extract(self.ASSET_KERNEL_20190215,
|
||||
member='boot/kernel8.img')
|
||||
dtb_path = self.archive_extract(self.ASSET_KERNEL_20190215,
|
||||
member='boot/bcm2711-rpi-4-b.dtb')
|
||||
|
||||
self.set_machine('raspi4b')
|
||||
self.vm.set_console()
|
||||
|
@ -58,9 +59,10 @@ class Aarch64Raspi4Machine(LinuxKernelTest):
|
|||
|
||||
|
||||
def test_arm_raspi4_initrd(self):
|
||||
deb_path = self.ASSET_KERNEL_20190215.fetch()
|
||||
kernel_path = self.extract_from_deb(deb_path, '/boot/kernel8.img')
|
||||
dtb_path = self.extract_from_deb(deb_path, '/boot/bcm2711-rpi-4-b.dtb')
|
||||
kernel_path = self.archive_extract(self.ASSET_KERNEL_20190215,
|
||||
member='boot/kernel8.img')
|
||||
dtb_path = self.archive_extract(self.ASSET_KERNEL_20190215,
|
||||
member='boot/bcm2711-rpi-4-b.dtb')
|
||||
initrd_path_gz = self.ASSET_INITRD.fetch()
|
||||
initrd_path = self.scratch_file('rootfs.cpio')
|
||||
gzip_uncompress(initrd_path_gz, initrd_path)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue