]> code.ossystems Code Review - openembedded-core.git/commitdiff
selftest: wic: fix test_qemu
authorEd Bartosh <ed.bartosh@linux.intel.com>
Fri, 2 Dec 2016 23:48:06 +0000 (01:48 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 7 Dec 2016 10:36:12 +0000 (10:36 +0000)
Setting WKS_FILE variable in qemux86-64 made wic test to
use wrong wks file to produce an image and resulted in
test_qemu failure.

Used conditional assignment in qemux86-64 and explicitly
set WKS_FILE in wic testing suite to make the suite to use
wic-image-minimal.wsk. This should fix test_qemu failure.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/conf/machine/qemux86-64.conf
meta/lib/oeqa/selftest/wic.py

index 755972489f898fe6ec714a57f451275149b1842f..3117ca1a5b5fbc6975d6df70d47d2a1a6490df90 100644 (file)
@@ -29,5 +29,5 @@ MACHINE_FEATURES += "x86"
 
 MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "v86d"
 
-WKS_FILE = "directdisk.wks"
+WKS_FILE ?= "directdisk.wks"
 do_image_wic[depends] += "syslinux:do_build syslinux-native:do_populate_sysroot mtools-native:do_populate_sysroot dosfstools-native:do_populate_sysroot"
index faac11e21643e4c32a83b649b6ae986fead498f1..e652fad24ab6dd7ab1b998b60a98a4052a2f1dd7 100644 (file)
@@ -42,7 +42,8 @@ class Wic(oeSelfTest):
     def setUpLocal(self):
         """This code is executed before each test method."""
         self.write_config('IMAGE_FSTYPES += " hddimg"\n'
-                          'MACHINE_FEATURES_append = " efi"\n')
+                          'MACHINE_FEATURES_append = " efi"\n'
+                          'WKS_FILE = "wic-image-minimal"\n')
 
         # Do this here instead of in setUpClass as the base setUp does some
         # clean up which can result in the native tools built earlier in