summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEd Bartosh <ed.bartosh@linux.intel.com>2017-01-26 19:31:48 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-01-31 14:13:28 +0000
commit9ed399b99e40ec9ec76df1fbdedfb8104a463acc (patch)
treec1b20c49240e2051f24d544cf3db11e24a0161c1
parent71e3c631bac859d00cef05bbf7bd901a96bac520 (diff)
downloadopenembedded-core-9ed399b99e40ec9ec76df1fbdedfb8104a463acc.tar.gz
openembedded-core-9ed399b99e40ec9ec76df1fbdedfb8104a463acc.tar.bz2
openembedded-core-9ed399b99e40ec9ec76df1fbdedfb8104a463acc.zip
selftest: check results in test_image_vars_dir*
Tested that result images are produced in test_image_vars_dir_long and test_image_vars_dir_short test cases. Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
-rw-r--r--meta/lib/oeqa/selftest/wic.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/meta/lib/oeqa/selftest/wic.py b/meta/lib/oeqa/selftest/wic.py
index 24093d1d53..53631fa595 100644
--- a/meta/lib/oeqa/selftest/wic.py
+++ b/meta/lib/oeqa/selftest/wic.py
@@ -390,6 +390,7 @@ class Wic(oeSelfTest):
self.assertEqual(0, runCmd("wic create directdisk "
"--image-name=%s -v %s -o %s"
% (image, imgenvdir, self.resultdir)).status)
+ self.assertEqual(1, len(glob(self.resultdir + "directdisk-*direct")))
def test_image_vars_dir_long(self):
"""Test image vars directory selection --vars option"""
@@ -400,6 +401,7 @@ class Wic(oeSelfTest):
"--vars %s "
"--outdir %s"
% (image, imgenvdir, self.resultdir)).status)
+ self.assertEqual(1, len(glob(self.resultdir + "directdisk-*direct")))
@testcase(1351)
def test_wic_image_type(self):