diff options
| -rw-r--r-- | meta/lib/oeqa/core/decorator/data.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/meta/lib/oeqa/core/decorator/data.py b/meta/lib/oeqa/core/decorator/data.py index 5444b2cb75..0daf46334f 100644 --- a/meta/lib/oeqa/core/decorator/data.py +++ b/meta/lib/oeqa/core/decorator/data.py | |||
| @@ -228,3 +228,15 @@ class skipIfNotArch(OETestDecorator): | |||
| 228 | arch = self.case.td['HOST_ARCH'] | 228 | arch = self.case.td['HOST_ARCH'] |
| 229 | if arch not in self.archs: | 229 | if arch not in self.archs: |
| 230 | self.case.skipTest('Test skipped on %s' % arch) | 230 | self.case.skipTest('Test skipped on %s' % arch) |
| 231 | |||
| 232 | @registerDecorator | ||
| 233 | class skipIfNotBuildArch(OETestDecorator): | ||
| 234 | """ | ||
| 235 | Skip test if BUILD_ARCH is not present in the tuple specified. | ||
| 236 | """ | ||
| 237 | |||
| 238 | attrs = ('archs',) | ||
| 239 | def setUpDecorator(self): | ||
| 240 | arch = self.case.td['BUILD_ARCH'] | ||
| 241 | if arch not in self.archs: | ||
| 242 | self.case.skipTest('Test skipped on %s' % arch) | ||
