diff options
Diffstat (limited to 'meta/lib/oeqa/selftest/wic.py')
| -rw-r--r-- | meta/lib/oeqa/selftest/wic.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/meta/lib/oeqa/selftest/wic.py b/meta/lib/oeqa/selftest/wic.py index c628b59bc2..a2ce2cb63e 100644 --- a/meta/lib/oeqa/selftest/wic.py +++ b/meta/lib/oeqa/selftest/wic.py | |||
| @@ -29,13 +29,19 @@ from glob import glob | |||
| 29 | from shutil import rmtree | 29 | from shutil import rmtree |
| 30 | 30 | ||
| 31 | from oeqa.selftest.base import oeSelfTest | 31 | from oeqa.selftest.base import oeSelfTest |
| 32 | from oeqa.utils.commands import runCmd | 32 | from oeqa.utils.commands import runCmd, bitbake |
| 33 | 33 | ||
| 34 | class Wic(oeSelfTest): | 34 | class Wic(oeSelfTest): |
| 35 | """Wic test class.""" | 35 | """Wic test class.""" |
| 36 | 36 | ||
| 37 | resultdir = "/var/tmp/wic/build/" | 37 | resultdir = "/var/tmp/wic/build/" |
| 38 | 38 | ||
| 39 | @classmethod | ||
| 40 | def setUpClass(cls): | ||
| 41 | """Build wic runtime dependencies and images used in the tests.""" | ||
| 42 | bitbake('syslinux syslinux-native parted-native ' | ||
| 43 | 'dosfstools-native mtools-native core-image-minimal') | ||
| 44 | |||
| 39 | def setUp(self): | 45 | def setUp(self): |
| 40 | """This code is executed before each test method.""" | 46 | """This code is executed before each test method.""" |
| 41 | rmtree(self.resultdir, ignore_errors=True) | 47 | rmtree(self.resultdir, ignore_errors=True) |
