]> git.ipfire.org Git - thirdparty/qemu.git/commit
tests/functional: add 'archive_extract' to QemuBaseTest
authorDaniel P. Berrangé <berrange@redhat.com>
Tue, 17 Dec 2024 15:59:43 +0000 (15:59 +0000)
committerThomas Huth <thuth@redhat.com>
Tue, 17 Dec 2024 18:39:53 +0000 (19:39 +0100)
commit239fd29d6f82724c95a7a7f840c9f9244bcbe6d4
tree9b6f52fa24c1265199ccfe1c13ed5cd54972e9eb
parentc283afbf658cdc2156250a84be433fc0bdd002ac
tests/functional: add 'archive_extract' to QemuBaseTest

This helper wrappers archive.archive_extract, forcing the use of the
scratch directory, to ensure any extracted files are cleaned at test
termination. If a specific member is requested, then the path to the
extracted file is also returned.

Reviewed-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
Message-ID: <20241217155953.3950506-23-berrange@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
tests/functional/qemu_test/testcase.py