tests/functional: let cpio_extract accept filenames
authorDaniel P. Berrangé <berrange@redhat.com>
Tue, 17 Dec 2024 15:59:41 +0000 (15:59 +0000)
committerThomas Huth <thuth@redhat.com>
Tue, 17 Dec 2024 18:39:53 +0000 (19:39 +0100)
commitc055f1d26fbcc18de02e59569f3e2a224595835a
tree9e616ff45e5524b24f790a19283b593803fb26ec
parent512fe088b12885ddf035124cb5ff8315cfe0de06
tests/functional: let cpio_extract accept filenames

Currently cpio_extract differs from tar_extract/zip_extract
in that it only allows a file-like object as input. Adapt it
to also support filenames.

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