From 567cb51f15354c0398b986e32011420a5f3dd090 Mon Sep 17 00:00:00 2001 From: Mariano Lopez Date: Tue, 1 Dec 2015 08:48:53 +0000 Subject: 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 --- meta/lib/oeqa/selftest/wic.py | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'meta/lib/oeqa') 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))) -- cgit 1.2.3-korg