mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 23:33:54 -06:00
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>
This commit is contained in:
parent
3ea06d65be
commit
3d5938607e
16 changed files with 61 additions and 122 deletions
|
@ -4,11 +4,8 @@
|
|||
#
|
||||
# SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
import os
|
||||
|
||||
from qemu_test import LinuxKernelTest, Asset
|
||||
from qemu_test import LinuxKernelTest, Asset, skipFlakyTest
|
||||
from qemu_test.utils import archive_extract
|
||||
from unittest import skipUnless
|
||||
|
||||
class R2dTest(LinuxKernelTest):
|
||||
|
||||
|
@ -18,7 +15,8 @@ class R2dTest(LinuxKernelTest):
|
|||
|
||||
# This test has a 6-10% failure rate on various hosts that look
|
||||
# like issues with a buggy kernel.
|
||||
@skipUnless(os.getenv('QEMU_TEST_FLAKY_TESTS'), 'Test is unstable')
|
||||
# XXX file tracking bug
|
||||
@skipFlakyTest(bug_url=None)
|
||||
def test_r2d(self):
|
||||
self.set_machine('r2d')
|
||||
file_path = self.ASSET_DAY09.fetch()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue