From: Mariano Lopez Date: Tue, 1 Dec 2015 08:48:53 +0000 (+0000) Subject: selftest/wic.py: Add test for custom bootloader config X-Git-Tag: 2016-4~2002 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=567cb51f15354c0398b986e32011420a5f3dd090;p=openembedded-core.git 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 Signed-off-by: Ross Burton --- 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)))