mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-09-09 00:07:57 -06:00

There are many types of archives that the tests deal with. Provide a generalized 'archive_extract' that can detect the format and delegate to the appropriate helper for extraction. This ensures that all archive extraction code follows the same design pattern. Reviewed-by: Thomas Huth <thuth@redhat.com> Signed-off-by: Daniel P. Berrangé <berrange@redhat.com> Message-ID: <20241217155953.3950506-22-berrange@redhat.com> Signed-off-by: Thomas Huth <thuth@redhat.com>
19 lines
767 B
Python
19 lines
767 B
Python
# Test class and utilities for functional tests
|
|
#
|
|
# Copyright 2024 Red Hat, Inc.
|
|
#
|
|
# This work is licensed under the terms of the GNU GPL, version 2 or
|
|
# later. See the COPYING file in the top-level directory.
|
|
|
|
|
|
from .asset import Asset
|
|
from .config import BUILD_DIR
|
|
from .cmd import run_cmd, is_readable_executable_file, \
|
|
interrupt_interactive_console_until_pattern, wait_for_console_pattern, \
|
|
exec_command, exec_command_and_wait_for_pattern, get_qemu_img, which
|
|
from .testcase import QemuBaseTest, QemuUserTest, QemuSystemTest
|
|
from .linuxkernel import LinuxKernelTest
|
|
from .decorators import skipIfMissingCommands, skipIfNotMachine, \
|
|
skipFlakyTest, skipUntrustedTest, skipBigDataTest, \
|
|
skipIfMissingImports
|
|
from .archive import archive_extract
|