[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 20/32] tests/functional: update tuxruntest to use uncompress utili
From: |
Alex Bennée |
Subject: |
[PULL 20/32] tests/functional: update tuxruntest to use uncompress utility |
Date: |
Fri, 10 Jan 2025 13:17:42 +0000 |
Use the utility functions to reduce code duplication.
Reviewed-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20250108121054.1126164-21-alex.bennee@linaro.org>
diff --git a/tests/functional/qemu_test/tuxruntest.py
b/tests/functional/qemu_test/tuxruntest.py
index 7227a83757..41a4945a14 100644
--- a/tests/functional/qemu_test/tuxruntest.py
+++ b/tests/functional/qemu_test/tuxruntest.py
@@ -73,17 +73,7 @@ def fetch_tuxrun_assets(self, kernel_asset, rootfs_asset,
dtb_asset=None):
Fetch the TuxBoot assets.
"""
kernel_image = kernel_asset.fetch()
- disk_image_zst = rootfs_asset.fetch()
-
- disk_image = self.scratch_file("rootfs.ext4")
-
- check_call(['zstd', "-f", "-d", disk_image_zst,
- "-o", disk_image],
- stdout=DEVNULL, stderr=DEVNULL)
- # zstd copies source archive permissions for the output
- # file, so must make this writable for QEMU
- os.chmod(disk_image, stat.S_IRUSR | stat.S_IWUSR)
-
+ disk_image = self.uncompress(rootfs_asset)
dtb = dtb_asset.fetch() if dtb_asset is not None else None
return (kernel_image, disk_image, dtb)
--
2.39.5
- Re: [PULL 15/32] tests/functional/aarch64: add tests for FEAT_RME, (continued)
- [PULL 18/32] tests/functional: remove hacky sleep from the tests, Alex Bennée, 2025/01/10
- [PULL 31/32] dockerfiles: Remove 'MAINTAINER' entry in debian-tricore-cross.docker, Alex Bennée, 2025/01/10
- [PULL 11/32] tests/functional: update the riscv64 tuxrun tests, Alex Bennée, 2025/01/10
- [PULL 27/32] tests/vm: fix build_path based path, Alex Bennée, 2025/01/10
- [PULL 25/32] tests/docker: move riscv64 cross container from sid to trixie, Alex Bennée, 2025/01/10
- [PULL 23/32] tests/functional: extend test_aarch64_virt with vulkan test, Alex Bennée, 2025/01/10
- [PULL 32/32] MAINTAINERS: Remove myself from reviewers, Alex Bennée, 2025/01/10
- [PULL 16/32] tests/qtest: remove clock_steps from virtio tests, Alex Bennée, 2025/01/10
- [PULL 20/32] tests/functional: update tuxruntest to use uncompress utility,
Alex Bennée <=
- [PULL 19/32] tests/functional: add zstd support to uncompress utility, Alex Bennée, 2025/01/10
- [PULL 17/32] system/qtest: properly feedback results of clock_[step|set], Alex Bennée, 2025/01/10
- [PULL 26/32] tests/lcitool: remove temp workaround for debian mips64el, Alex Bennée, 2025/01/10
- [PULL 21/32] tests/functional: remove unused kernel_command_line, Alex Bennée, 2025/01/10
- [PULL 29/32] tests/vm: allow interactive login as root, Alex Bennée, 2025/01/10
- [PULL 22/32] tests/functional: bail aarch64_virt tests early if missing TCG, Alex Bennée, 2025/01/10
- [PULL 28/32] tests/vm: partially un-tabify help output, Alex Bennée, 2025/01/10
- [PULL 30/32] pc-bios: ensure keymaps dependencies set vnc tests, Alex Bennée, 2025/01/10
- Re: [PULL 00/32] testing updates for 10.0 (tuxrun, libvirt, dockerfiles, misc), Stefan Hajnoczi, 2025/01/10