Support supported distros on selftest
cover Support supported distros on selftest
From: Leonardo Sandoval <[email protected]>
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(-)
Signature · 1 line
2.1.4
PATCH 1/1 selftest: skip tests for poky-tiny distro due to incompatible kernel machine
From: Leonardo Sandoval <[email protected]>
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]
--- 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(-)
meta-yocto-bsp/lib/oeqa/selftest/gummiboot.py +5 -1
@@ -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): """
meta-yocto-bsp/lib/oeqa/selftest/systemd_boot.py +5 -0
@@ -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
Signature · 1 line
2.1.4