Re: [PATCH] tests/functional: Fix broken decorators with lamda functions

2025-01-22 Thread Daniel P . Berrangé
On Tue, Jan 21, 2025 at 07:58:14AM +0100, Thomas Huth wrote: > 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 with

[PATCH] tests/functional: Fix broken decorators with lamda functions

2025-01-20 Thread Thomas Huth
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. skipIfMissingImports also