[poky] [PATCH v2 1/1] selftest: skip tests for poky-tiny distro due to incompatible kernel machine

leonardo.sandoval.gonzalez at linux.intel.com leonardo.sandoval.gonzalez at linux.intel.com
Thu Nov 24 13:34:46 PST 2016


From: Leonardo Sandoval <leonardo.sandoval.gonzalez at linux.intel.com>

The poky-tiny distro points to linux-yocto-tiny which in turns the compatible
machine is set to qemux86. Current tests are defined for just generic86 architectures
so tests are not possible for the corresponding distro.

Signed-off-by: Leonardo Sandoval <leonardo.sandoval.gonzalez at linux.intel.com>
---
 meta-yocto-bsp/lib/oeqa/selftest/gummiboot.py    | 3 ++-
 meta-yocto-bsp/lib/oeqa/selftest/systemd_boot.py | 3 ++-
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/meta-yocto-bsp/lib/oeqa/selftest/gummiboot.py b/meta-yocto-bsp/lib/oeqa/selftest/gummiboot.py
index 00aa36f..63643e5 100644
--- a/meta-yocto-bsp/lib/oeqa/selftest/gummiboot.py
+++ b/meta-yocto-bsp/lib/oeqa/selftest/gummiboot.py
@@ -25,9 +25,10 @@ class Gummiboot(oeSelfTest):
         """
 
         # Build a genericx86-64/efi gummiboot image
+        if self.distro == 'poky-tiny':
+            self.skipTest('Machine %s not compatible with linux-yocto-tiny' % get_bb_var('MACHINE'))
         bitbake('syslinux syslinux-native parted-native dosfstools-native mtools-native core-image-minimal')
 
-
     @testcase(1101)
     def test_efi_gummiboot_images_can_be_built(self):
         """
diff --git a/meta-yocto-bsp/lib/oeqa/selftest/systemd_boot.py b/meta-yocto-bsp/lib/oeqa/selftest/systemd_boot.py
index f7f74db..52b33ed 100644
--- a/meta-yocto-bsp/lib/oeqa/selftest/systemd_boot.py
+++ b/meta-yocto-bsp/lib/oeqa/selftest/systemd_boot.py
@@ -25,9 +25,10 @@ class Systemdboot(oeSelfTest):
         """
 
         # Build a genericx86-64/efi gummiboot image
+        if self.distro == 'poky-tiny':
+            self.skipTest('Machine %s not compatible with linux-yocto-tiny' % get_bb_var('MACHINE'))
         bitbake('mtools-native core-image-minimal')
 
-
     @testcase(1445)
     def test_efi_systemdboot_images_can_be_built(self):
         """
-- 
2.1.4



More information about the poky mailing list