summaryrefslogtreecommitdiffstats
path: root/meta/lib
diff options
context:
space:
mode:
Diffstat (limited to 'meta/lib')
-rw-r--r--meta/lib/oeqa/selftest/cases/wic.py18
1 files changed, 8 insertions, 10 deletions
diff --git a/meta/lib/oeqa/selftest/cases/wic.py b/meta/lib/oeqa/selftest/cases/wic.py
index 928c476ebc..fcdd55059d 100644
--- a/meta/lib/oeqa/selftest/cases/wic.py
+++ b/meta/lib/oeqa/selftest/cases/wic.py
@@ -684,11 +684,10 @@ class Wic2(WicTestCase):
684 @only_for_arch(['i586', 'i686', 'x86_64']) 684 @only_for_arch(['i586', 'i686', 'x86_64'])
685 def test_biosplusefi_plugin_qemu(self): 685 def test_biosplusefi_plugin_qemu(self):
686 """Test biosplusefi plugin in qemu""" 686 """Test biosplusefi plugin in qemu"""
687 for fstype in ("ext4", "wic"): 687 config = 'IMAGE_FSTYPES = "wic"\nWKS_FILE = "test_biosplusefi_plugin.wks"\nMACHINE_FEATURES_append = " efi"\n'
688 config = 'IMAGE_FSTYPES = "%s"\nWKS_FILE = "test_biosplusefi_plugin.wks"\nMACHINE_FEATURES_append = " efi"\n' % fstype 688 self.append_config(config)
689 self.append_config(config) 689 self.assertEqual(0, bitbake('core-image-minimal').status)
690 self.assertEqual(0, bitbake('core-image-minimal').status) 690 self.remove_config(config)
691 self.remove_config(config)
692 691
693 with runqemu('core-image-minimal', ssh=False, image_fstype='wic') as qemu: 692 with runqemu('core-image-minimal', ssh=False, image_fstype='wic') as qemu:
694 # Check that we have ONLY two /dev/sda* partitions (/boot and /) 693 # Check that we have ONLY two /dev/sda* partitions (/boot and /)
@@ -722,11 +721,10 @@ class Wic2(WicTestCase):
722 # If an image hasn't been built yet, directory ${STAGING_DATADIR}/syslinux won't exists and _get_bootimg_dir() 721 # If an image hasn't been built yet, directory ${STAGING_DATADIR}/syslinux won't exists and _get_bootimg_dir()
723 # will raise with "Couldn't find correct bootimg_dir" 722 # will raise with "Couldn't find correct bootimg_dir"
724 # The easiest way to work-around this issue is to make sure we already built an image here, hence the bitbake call 723 # The easiest way to work-around this issue is to make sure we already built an image here, hence the bitbake call
725 for fstype in ("ext4", "wic"): 724 config = 'IMAGE_FSTYPES = "wic"\nWKS_FILE = "test_biosplusefi_plugin.wks"\nMACHINE_FEATURES_append = " efi"\n'
726 config = 'IMAGE_FSTYPES = "%s"\nWKS_FILE = "test_biosplusefi_plugin.wks"\nMACHINE_FEATURES_append = " efi"\n' % fstype 725 self.append_config(config)
727 self.append_config(config) 726 self.assertEqual(0, bitbake('core-image-minimal').status)
728 self.assertEqual(0, bitbake('core-image-minimal').status) 727 self.remove_config(config)
729 self.remove_config(config)
730 728
731 img = 'core-image-minimal' 729 img = 'core-image-minimal'
732 with NamedTemporaryFile("w", suffix=".wks") as wks: 730 with NamedTemporaryFile("w", suffix=".wks") as wks: