diff options
| author | Mariano Lopez <mariano.lopez@linux.intel.com> | 2015-12-01 08:48:53 +0000 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-12-09 08:48:25 +0000 |
| commit | d7baeb5fad2630986556d4af38a2e2c67f7250c2 (patch) | |
| tree | 279a32aa11dfed80612375b67735b83157122844 | |
| parent | 8612f260048fe53f46149708baa6bd1985a4eb9f (diff) | |
| download | poky-d7baeb5fad2630986556d4af38a2e2c67f7250c2.tar.gz | |
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]
(From OE-Core rev: 567cb51f15354c0398b986e32011420a5f3dd090)
Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
| -rw-r--r-- | meta/lib/oeqa/selftest/wic.py | 8 |
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): | |||
| 256 | self.assertEqual(0, runCmd("wic create %s -e core-image-minimal" \ | 256 | self.assertEqual(0, runCmd("wic create %s -e core-image-minimal" \ |
| 257 | % image).status) | 257 | % image).status) |
| 258 | self.assertEqual(1, len(glob(self.resultdir + "%s-*direct" % image))) | 258 | self.assertEqual(1, len(glob(self.resultdir + "%s-*direct" % image))) |
| 259 | |||
| 260 | #@testcase() | ||
| 261 | def test_directdisk_bootloader_config(self): | ||
| 262 | """Test creation of directdisk-bootloader-config image""" | ||
| 263 | image = "directdisk-bootloader-config" | ||
| 264 | self.assertEqual(0, runCmd("wic create %s -e core-image-minimal" \ | ||
| 265 | % image).status) | ||
| 266 | self.assertEqual(1, len(glob(self.resultdir + "%s-*direct" % image))) | ||
