mirror of
https://git.yoctoproject.org/poky
synced 2026-04-21 03:32:12 +02:00
oeqa/core/decorator: add skip if not qemu-usermode
Add a decorator to skip tests which require the qemu-usermode machine feature. (From OE-Core rev: 3d79615d6c9ccb1ff3766ce05389bc22cbd656e1) Signed-off-by: Adrian Freihofer <adrian.freihofer@siemens.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
2df986746b
commit
1ec91141e5
@@ -185,6 +185,16 @@ class skipIfNotQemu(OETestDecorator):
|
||||
if not self.case.td.get('MACHINE', '').startswith('qemu'):
|
||||
self.case.skipTest('Test only runs on qemu machines')
|
||||
|
||||
@registerDecorator
|
||||
class skipIfNotQemuUsermode(OETestDecorator):
|
||||
"""
|
||||
Skip test if MACHINE_FEATURES does not contain qemu-usermode
|
||||
"""
|
||||
def setUpDecorator(self):
|
||||
self.logger.debug("Checking if MACHINE_FEATURES does not contain qemu-usermode")
|
||||
if 'qemu-usermode' not in self.case.td.get('MACHINE_FEATURES', '').split():
|
||||
self.case.skipTest('Test requires qemu-usermode in MACHINE_FEATURES')
|
||||
|
||||
@registerDecorator
|
||||
class skipIfQemu(OETestDecorator):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user