tests/functional: Fix broken decorators with lamda functions
authorThomas Huth <thuth@redhat.com>
Wed, 22 Jan 2025 13:43:14 +0000 (14:43 +0100)
committerThomas Huth <thuth@redhat.com>
Thu, 30 Jan 2025 09:30:36 +0000 (10:30 +0100)
commit257de641e091f4f5063298b9d717f3f15f8917f2
tree7cdc5e36932d11f34cc208541c8af191d142c6f2
parentaca2c48e4d26426c14499fd3d8a2e333ac57d267
tests/functional: Fix broken decorators with lamda functions

The decorators that use a lambda function are currently broken
and do not properly skip the test if the condition is not met.
Using "return skipUnless(lambda: ...)" does not work as expected.
To fix it, rewrite the decorators without lambda, it's simpler
that way anyway.

Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Message-ID: <20250122134315.1448794-3-thuth@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
tests/functional/qemu_test/decorators.py