summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMariano Lopez <mariano.lopez@linux.intel.com>2015-12-01 08:48:53 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-12-09 08:47:28 +0000
commit567cb51f15354c0398b986e32011420a5f3dd090 (patch)
treeca72461d691ab6f167b78cdc708723309368c221
parent4a9db893f721c0da5d103d28b97a0302cc9e2197 (diff)
downloadopenembedded-core-567cb51f15354c0398b986e32011420a5f3dd090.tar.gz
openembedded-core-567cb51f15354c0398b986e32011420a5f3dd090.tar.bz2
openembedded-core-567cb51f15354c0398b986e32011420a5f3dd090.zip
selftest/wic.py: Add test for custom bootloader config
This change just add anoher test to the wic module. It will try to create a image with a custom bootloader configuration. This test will use the example image directdisk-bootloader-config to test the configfile option for the bootloaders. [YOCTO #8728] Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
-rw-r--r--meta/lib/oeqa/selftest/wic.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/meta/lib/oeqa/selftest/wic.py b/meta/lib/oeqa/selftest/wic.py
index ea78e22594..f4404bfe55 100644
--- a/meta/lib/oeqa/selftest/wic.py
+++ b/meta/lib/oeqa/selftest/wic.py
@@ -256,3 +256,11 @@ class Wic(oeSelfTest):
self.assertEqual(0, runCmd("wic create %s -e core-image-minimal" \
% image).status)
self.assertEqual(1, len(glob(self.resultdir + "%s-*direct" % image)))
+
+ #@testcase()
+ def test_directdisk_bootloader_config(self):
+ """Test creation of directdisk-bootloader-config image"""
+ image = "directdisk-bootloader-config"
+ self.assertEqual(0, runCmd("wic create %s -e core-image-minimal" \
+ % image).status)
+ self.assertEqual(1, len(glob(self.resultdir + "%s-*direct" % image)))