diff options
| author | Daniel P. Berrangé <berrange@redhat.com> | 2024-12-17 15:59:29 +0000 |
|---|---|---|
| committer | Thomas Huth <thuth@redhat.com> | 2024-12-17 19:39:53 +0100 |
| commit | 3d5938607e05c4f8ac6df046a92fad19b681c23b (patch) | |
| tree | c161ecbdd2ca7805e69bf760965eececa415c0f7 /tests/functional/test_arm_bflt.py | |
| parent | 3ea06d65be5ee65beabc479d92e964e3c9df5080 (diff) | |
| download | focaccia-qemu-3d5938607e05c4f8ac6df046a92fad19b681c23b.tar.gz focaccia-qemu-3d5938607e05c4f8ac6df046a92fad19b681c23b.zip | |
tests/functional: switch to new test skip decorators
This ensures consistency of behaviour across all the tests, and requires that we provide gitlab bug links when marking a test to be skipped due to unreliability. Reviewed-by: Thomas Huth <thuth@redhat.com> Signed-off-by: Daniel P. Berrangé <berrange@redhat.com> Message-ID: <20241217155953.3950506-9-berrange@redhat.com> Signed-off-by: Thomas Huth <thuth@redhat.com>
Diffstat (limited to 'tests/functional/test_arm_bflt.py')
| -rwxr-xr-x | tests/functional/test_arm_bflt.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/tests/functional/test_arm_bflt.py b/tests/functional/test_arm_bflt.py index 281925d11a..9095b08539 100755 --- a/tests/functional/test_arm_bflt.py +++ b/tests/functional/test_arm_bflt.py @@ -10,9 +10,8 @@ import os import bz2 from qemu_test import QemuUserTest, Asset -from qemu_test import has_cmd +from qemu_test import skipIfMissingCommands, skipUntrustedTest from qemu_test.utils import cpio_extract -from unittest import skipUnless class LoadBFLT(QemuUserTest): @@ -21,8 +20,8 @@ class LoadBFLT(QemuUserTest): ('https://elinux.org/images/5/51/Stm32_mini_rootfs.cpio.bz2'), 'eefb788e4980c9e8d6c9d60ce7d15d4da6bf4fbc6a80f487673824600d5ba9cc') - @skipUnless(*has_cmd('cpio')) - @skipUnless(os.getenv('QEMU_TEST_ALLOW_UNTRUSTED_CODE'), 'untrusted code') + @skipIfMissingCommands('cpio') + @skipUntrustedTest() def test_stm32(self): # See https://elinux.org/STM32#User_Space rootfs_path_bz2 = self.ASSET_ROOTFS.fetch() |