diff options
| author | Daniel P. Berrangé <berrange@redhat.com> | 2024-12-17 15:59:44 +0000 |
|---|---|---|
| committer | Thomas Huth <thuth@redhat.com> | 2024-12-17 19:39:53 +0100 |
| commit | 5831ed84e7e450a652f215721aba34ed4e1ffb97 (patch) | |
| tree | 3e694461d1f99da21aa3e9f5cdd77d50e8ef12af /tests/functional/test_arm_bflt.py | |
| parent | 239fd29d6f82724c95a7a7f840c9f9244bcbe6d4 (diff) | |
| download | focaccia-qemu-5831ed84e7e450a652f215721aba34ed4e1ffb97.tar.gz focaccia-qemu-5831ed84e7e450a652f215721aba34ed4e1ffb97.zip | |
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>
Diffstat (limited to 'tests/functional/test_arm_bflt.py')
| -rwxr-xr-x | tests/functional/test_arm_bflt.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/functional/test_arm_bflt.py b/tests/functional/test_arm_bflt.py index 88ef7b1edc..f273fc8354 100755 --- a/tests/functional/test_arm_bflt.py +++ b/tests/functional/test_arm_bflt.py @@ -10,7 +10,6 @@ import bz2 from qemu_test import QemuUserTest, Asset from qemu_test import skipIfMissingCommands, skipUntrustedTest -from qemu_test.utils import cpio_extract class LoadBFLT(QemuUserTest): @@ -27,7 +26,7 @@ class LoadBFLT(QemuUserTest): busybox_path = self.scratch_file("bin", "busybox") with bz2.open(rootfs_path_bz2, 'rb') as cpio_handle: - cpio_extract(cpio_handle, self.workdir) + self.archive_extract(cpio_handle, format="cpio") res = self.run_cmd(busybox_path) ver = 'BusyBox v1.24.0.git (2015-02-03 22:17:13 CET) multi-call binary.' |