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_ppc_40p.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_ppc_40p.py')
| -rwxr-xr-x | tests/functional/test_ppc_40p.py | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/tests/functional/test_ppc_40p.py b/tests/functional/test_ppc_40p.py index 67bcdae53a..7a74e0cca7 100755 --- a/tests/functional/test_ppc_40p.py +++ b/tests/functional/test_ppc_40p.py @@ -7,11 +7,8 @@ # This work is licensed under the terms of the GNU GPL, version 2 or # later. See the COPYING file in the top-level directory. -import os - -from unittest import skipUnless from qemu_test import QemuSystemTest, Asset -from qemu_test import wait_for_console_pattern +from qemu_test import wait_for_console_pattern, skipUntrustedTest class IbmPrep40pMachine(QemuSystemTest): @@ -37,7 +34,7 @@ class IbmPrep40pMachine(QemuSystemTest): # All rights reserved. # U.S. Government Users Restricted Rights - Use, duplication or disclosure # restricted by GSA ADP Schedule Contract with IBM Corp. - @skipUnless(os.getenv('QEMU_TEST_ALLOW_UNTRUSTED_CODE'), 'untrusted code') + @skipUntrustedTest() def test_factory_firmware_and_netbsd(self): self.set_machine('40p') self.require_accelerator("tcg") |