mirror of
https://github.com/qemu/qemu.git
synced 2026-10-06 05:08:09 +00:00
The memlock test analyzes /proc/*/status files and expects the layout from Linux in there. However, these files also exist on NetBSD hosts with a completely different layout, causing this test to fail. Thus limit the test to Linux hosts now. We already have a decorator to skip a test if it is running on a certain host system, but in this case, we rather want to skip if we are not running on a specific host system, so introduce a new @skipUnlessOperatingSystem decorator for this job. Reviewed-by: Daniel P. Berrangé <berrange@redhat.com> Reviewed-by: Zhao Liu <zhao1.liu@intel.com> Signed-off-by: Thomas Huth <thuth@redhat.com> Message-ID: <20260121111140.99482-1-thuth@redhat.com>
23 lines
936 B
Python
23 lines
936 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, dso_suffix
|
|
from .cmd import 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, skipSlowTest, \
|
|
skipIfMissingImports, skipIfOperatingSystem, skipUnlessOperatingSystem, \
|
|
skipLockedMemoryTest, skipIfMissingEnv
|
|
from .archive import archive_extract
|
|
from .uncompress import uncompress
|
|
from .gdb import GDB
|