All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/1] Support supported distros on selftest
@ 2016-10-14 16:57 leonardo.sandoval.gonzalez
  2016-10-14 16:57 ` [PATCH 1/1] selftest: skip tests for poky-tiny distro due to incompatible kernel machine leonardo.sandoval.gonzalez
  0 siblings, 1 reply; 2+ messages in thread
From: leonardo.sandoval.gonzalez @ 2016-10-14 16:57 UTC (permalink / raw)
  To: poky

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

This series is a continuation of oe-core series:

http://lists.openembedded.org/pipermail/openembedded-core/2016-October/127586.html

The latter defines self.distro at meta/lib/oeqa/selftest/base.py and it is used
at this series, so this series depends on the oe-core one.

[YOCTO #8525]

The following changes since commit 4a7eb4b92f32c17abd1111246b1acb9ad3daa355:

  build-appliance-image: Update to master head revision (2016-10-11 08:51:36 +0100)

are available in the git repository at:

  git://git.yoctoproject.org/poky-contrib lsandov1/oe-selftest-non-poky-distros-poky
  http://git.yoctoproject.org/cgit.cgi/poky-contrib/log/?h=lsandov1/oe-selftest-non-poky-distros-poky

Leonardo Sandoval (1):
  selftest: skip tests for poky-tiny distro due to incompatible kernel
    machine

 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(-)

-- 
2.1.4



^ permalink raw reply	[flat|nested] 2+ messages in thread

* [PATCH 1/1] selftest: skip tests for poky-tiny distro due to incompatible kernel machine
  2016-10-14 16:57 [PATCH 0/1] Support supported distros on selftest leonardo.sandoval.gonzalez
@ 2016-10-14 16:57 ` leonardo.sandoval.gonzalez
  0 siblings, 0 replies; 2+ messages in thread
From: leonardo.sandoval.gonzalez @ 2016-10-14 16:57 UTC (permalink / raw)
  To: poky

From: Leonardo Sandoval <leonardo.sandoval.gonzalez@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@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



^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-10-14 16:53 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-10-14 16:57 [PATCH 0/1] Support supported distros on selftest leonardo.sandoval.gonzalez
2016-10-14 16:57 ` [PATCH 1/1] selftest: skip tests for poky-tiny distro due to incompatible kernel machine leonardo.sandoval.gonzalez

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.