diff options
author | Alex Bennée <alex.bennee@linaro.org> | 2025-01-08 12:10:42 +0000 |
---|---|---|
committer | Alex Bennée <alex.bennee@linaro.org> | 2025-01-10 11:18:32 +0000 |
commit | 3b9ec25e48310124bed4b5dd8c4f89f8928015d2 (patch) | |
tree | 07b1d1710609d42ac01f0db552fb2684d5271759 /tests/functional/qemu_test/tuxruntest.py | |
parent | e6c9ab0b1808004ded669fcad93134422c70e62f (diff) | |
download | qemu-3b9ec25e48310124bed4b5dd8c4f89f8928015d2.zip qemu-3b9ec25e48310124bed4b5dd8c4f89f8928015d2.tar.gz qemu-3b9ec25e48310124bed4b5dd8c4f89f8928015d2.tar.bz2 |
tests/functional: update tuxruntest to use uncompress utility
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>
Diffstat (limited to 'tests/functional/qemu_test/tuxruntest.py')
-rw-r--r-- | tests/functional/qemu_test/tuxruntest.py | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/tests/functional/qemu_test/tuxruntest.py b/tests/functional/qemu_test/tuxruntest.py index 7227a83..41a4945 100644 --- a/tests/functional/qemu_test/tuxruntest.py +++ b/tests/functional/qemu_test/tuxruntest.py @@ -73,17 +73,7 @@ class TuxRunBaselineTest(QemuSystemTest): 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) |