mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 00:33:55 -06:00
tests/functional: Convert ARM bFLT linux-user avocado test
Straight forward conversion. Update the SHA1 hashes to SHA256 hashes since SHA1 should not be used anymore nowadays. Expose cpio_extract() in qemu_test.utils for possible reuse. Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Message-ID: <20240822104238.75045-3-philmd@linaro.org> [thuth: Add test to meson.build] Message-ID: <20240830133841.142644-39-thuth@redhat.com> Signed-off-by: Thomas Huth <thuth@redhat.com>
This commit is contained in:
parent
99465d3fe4
commit
34917ead72
4 changed files with 57 additions and 54 deletions
|
@ -12,6 +12,7 @@ import gzip
|
|||
import lzma
|
||||
import os
|
||||
import shutil
|
||||
import subprocess
|
||||
import tarfile
|
||||
|
||||
def archive_extract(archive, dest_dir, member=None):
|
||||
|
@ -45,3 +46,11 @@ def lzma_uncompress(xz_path, output_path):
|
|||
except:
|
||||
os.remove(output_path)
|
||||
raise
|
||||
|
||||
def cpio_extract(cpio_handle, output_path):
|
||||
cwd = os.getcwd()
|
||||
os.chdir(output_path)
|
||||
subprocess.run(['cpio', '-i'],
|
||||
input=cpio_handle.read(),
|
||||
stderr=subprocess.DEVNULL)
|
||||
os.chdir(cwd)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue