diff options
-rw-r--r-- | meta/lib/oeqa/selftest/wic.py | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/meta/lib/oeqa/selftest/wic.py b/meta/lib/oeqa/selftest/wic.py index 358f09e72f..60c8cb3deb 100644 --- a/meta/lib/oeqa/selftest/wic.py +++ b/meta/lib/oeqa/selftest/wic.py | |||
@@ -29,7 +29,7 @@ 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, bitbake | 32 | from oeqa.utils.commands import runCmd, bitbake, get_bb_var |
33 | 33 | ||
34 | class Wic(oeSelfTest): | 34 | class Wic(oeSelfTest): |
35 | """Wic test class.""" | 35 | """Wic test class.""" |
@@ -66,12 +66,15 @@ class Wic(oeSelfTest): | |||
66 | 66 | ||
67 | def test05_build_artifacts(self): | 67 | def test05_build_artifacts(self): |
68 | """Test wic create directdisk providing all artifacts.""" | 68 | """Test wic create directdisk providing all artifacts.""" |
69 | self.assertEqual(0, runCmd("wic create directdisk " | 69 | vars = dict((var.lower(), get_bb_var(var, 'core-image-minimal')) \ |
70 | "-b tmp/sysroots/qemux86/usr/share " | 70 | for var in ('STAGING_DATADIR', 'DEPLOY_DIR_IMAGE', |
71 | "-k tmp/deploy/images/qemux86 " | 71 | 'STAGING_DIR_NATIVE', 'IMAGE_ROOTFS')) |
72 | "-n tmp/sysroots/x86_64-linux " | 72 | status = runCmd("wic create directdisk " |
73 | "-r tmp/work/qemux86-poky-linux/" | 73 | "-b %(staging_datadir)s " |
74 | "core-image-minimal/1.0-r0/rootfs").status) | 74 | "-k %(deploy_dir_image)s " |
75 | "-n %(staging_dir_native)s " | ||
76 | "-r %(image_rootfs)s" % vars).status | ||
77 | self.assertEqual(0, status) | ||
75 | self.assertEqual(1, len(glob(self.resultdir + "directdisk-*.direct"))) | 78 | self.assertEqual(1, len(glob(self.resultdir + "directdisk-*.direct"))) |
76 | 79 | ||
77 | def test06_gpt_image(self): | 80 | def test06_gpt_image(self): |