mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 09:43:56 -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
|
@ -13,7 +13,6 @@ from qemu_test import QemuSystemTest, LinuxKernelTest, Asset
|
|||
from qemu_test import interrupt_interactive_console_until_pattern
|
||||
from qemu_test import wait_for_console_pattern
|
||||
from qemu_test.utils import lzma_uncompress
|
||||
from zipfile import ZipFile
|
||||
|
||||
|
||||
class MaltaMachineConsole(LinuxKernelTest):
|
||||
|
@ -73,9 +72,7 @@ class MaltaMachineYAMON(QemuSystemTest):
|
|||
|
||||
def test_mipsel_malta_yamon(self):
|
||||
yamon_bin = 'yamon-02.22.bin'
|
||||
zip_path = self.ASSET_YAMON_ROM.fetch()
|
||||
with ZipFile(zip_path, 'r') as zf:
|
||||
zf.extract(yamon_bin, path=self.workdir)
|
||||
self.archive_extract(self.ASSET_YAMON_ROM)
|
||||
yamon_path = self.scratch_file(yamon_bin)
|
||||
|
||||
self.set_machine('malta')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue