diff options
| -rw-r--r-- | meta/lib/oeqa/core/decorator/data.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/meta/lib/oeqa/core/decorator/data.py b/meta/lib/oeqa/core/decorator/data.py index de881e097a..5444b2cb75 100644 --- a/meta/lib/oeqa/core/decorator/data.py +++ b/meta/lib/oeqa/core/decorator/data.py | |||
| @@ -186,6 +186,16 @@ class skipIfNotQemu(OETestDecorator): | |||
| 186 | self.case.skipTest('Test only runs on qemu machines') | 186 | self.case.skipTest('Test only runs on qemu machines') |
| 187 | 187 | ||
| 188 | @registerDecorator | 188 | @registerDecorator |
| 189 | class skipIfNotQemuUsermode(OETestDecorator): | ||
| 190 | """ | ||
| 191 | Skip test if MACHINE_FEATURES does not contain qemu-usermode | ||
| 192 | """ | ||
| 193 | def setUpDecorator(self): | ||
| 194 | self.logger.debug("Checking if MACHINE_FEATURES does not contain qemu-usermode") | ||
| 195 | if 'qemu-usermode' not in self.case.td.get('MACHINE_FEATURES', '').split(): | ||
| 196 | self.case.skipTest('Test requires qemu-usermode in MACHINE_FEATURES') | ||
| 197 | |||
| 198 | @registerDecorator | ||
| 189 | class skipIfQemu(OETestDecorator): | 199 | class skipIfQemu(OETestDecorator): |
| 190 | """ | 200 | """ |
| 191 | Skip test if MACHINE is qemu* | 201 | Skip test if MACHINE is qemu* |
