]> www.infradead.org Git - users/dwmw2/qemu.git/commit
tests/functional: Add a function for extracting files from an archive
authorThomas Huth <thuth@redhat.com>
Fri, 30 Aug 2024 13:38:12 +0000 (15:38 +0200)
committerThomas Huth <thuth@redhat.com>
Wed, 4 Sep 2024 09:13:48 +0000 (11:13 +0200)
commit850a1951b7f614bbafa20c7d4cae55f97464f4ad
tree161e503c9e0e284a422efc6016e03172caf52a6c
parent4c0a2df81c9166a3a84293501008a85dfbe8a3a6
tests/functional: Add a function for extracting files from an archive

Some Avocado-based tests use the "archive" module from avocado.utils
to extract files from an archive. To be able to use these tests
without Avocado, we have to provide our own function for extracting
files. Fortunately, there is already the tarfile module that will
provide us with this functionality, so let's just add a nice wrapper
function around that.

Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Tested-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Tested-by: Daniel P. Berrangé <berrange@redhat.com>
Message-ID: <20240830133841.142644-19-thuth@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
tests/functional/qemu_test/utils.py [new file with mode: 0644]