qemu/tests/functional/qemu_test
Daniel P. Berrangé 3ea06d65be tests/functional: introduce some helpful decorators
Reduce repeated boilerplate with some helper decorators:

 @skipIfNotPlatform("x86_64", "aarch64")

  => Skip unless the build host platform matches

 @skipIfMissingCommands("mkisofs", "losetup")

  => Skips unless all listed commands are found in $PATH

 @skipIfMissingImports("numpy", "cv2")

  => Skips unless all listed modules can be imported

 @skipFlakyTest("https://gitlab.com/qemu-project/qemu/-/issues/NNN")

  => Skips unless env var requests flaky tests with the
     reason documented in the referenced gitlab bug

 @skipBigData

  => Skips unless env var permits tests creating big data files

 @skipUntrustedTest

  => Skips unless env var permits tests which are potentially
     dangerous to the host

Reviewed-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
Message-ID: <20241217155953.3950506-8-berrange@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
2024-12-17 19:39:53 +01:00
..
__init__.py tests/functional: introduce some helpful decorators 2024-12-17 19:39:53 +01:00
asset.py tests/functional: resolve str(Asset) to cache file path 2024-12-17 19:39:53 +01:00
cmd.py tests/functional: simplify 'which' implementation 2024-12-17 19:39:53 +01:00
config.py tests/functional: Add base classes for the upcoming pytest-based tests 2024-09-04 10:52:29 +02:00
decorators.py tests/functional: introduce some helpful decorators 2024-12-17 19:39:53 +01:00
linuxkernel.py tests/functional/qemu_test: Add a function for launching kernels more easily 2024-09-24 13:38:29 +02:00
tesseract.py tests/functional: drop 'tesseract_available' helper 2024-12-17 19:39:53 +01:00
testcase.py tests/functional: avoid accessing log_filename on earlier failures 2024-11-25 10:13:42 +00:00
tuxruntest.py tests/functional: remove many unused imports 2024-12-17 19:39:53 +01:00
utils.py tests/functional: Convert BananaPi tests to the functional framework 2024-11-04 14:16:12 +01:00