[poky] [PATCH 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
Fri Oct 14 09:57:56 PDT 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.

[YOCTO #8525]

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

diff --git a/meta-yocto-bsp/lib/oeqa/selftest/gummiboot.py b/meta-yocto-bsp/lib/oeqa/selftest/gummiboot.py
index 00aa36f..ced6b15 100644
--- a/meta-yocto-bsp/lib/oeqa/selftest/gummiboot.py
+++ b/meta-yocto-bsp/lib/oeqa/selftest/gummiboot.py
@@ -9,6 +9,11 @@ import logging
 
 class Gummiboot(oeSelfTest):
 
+    def setUpLocal(self):
+        if self.distro == 'poky-tiny':
+            if get_bb_var('MACHINE') != 'qemux86':
+                self.skipTest('Machine %s not compatible with linux-yocto-tiny' % self.machine)
+
     def _common_setup(self):
         """
         Common setup for test cases: 1101, 1103
@@ -27,7 +32,6 @@ class Gummiboot(oeSelfTest):
         # Build a genericx86-64/efi gummiboot image
         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..0980a0e 100644
--- a/meta-yocto-bsp/lib/oeqa/selftest/systemd_boot.py
+++ b/meta-yocto-bsp/lib/oeqa/selftest/systemd_boot.py
@@ -9,6 +9,11 @@ import logging
 
 class Systemdboot(oeSelfTest):
 
+    def setUpLocal(self):
+        if self.distro == 'poky-tiny':
+            if get_bb_var('MACHINE') != 'qemux86':
+                self.skipTest('Machine %s not compatible with linux-yocto-tiny' % self.machine)
+
     def _common_setup(self):
         """
         Common setup for test cases: 1445, XXXX
-- 
2.1.4



More information about the poky mailing list