diff options
-rw-r--r-- | meta-selftest/recipes-test/images/wic-image-minimal.wks | 1 | ||||
-rw-r--r-- | meta/lib/oeqa/selftest/cases/wic.py | 7 |
2 files changed, 6 insertions, 2 deletions
diff --git a/meta-selftest/recipes-test/images/wic-image-minimal.wks b/meta-selftest/recipes-test/images/wic-image-minimal.wks index 9410b684be..ae69cb6e3c 100644 --- a/meta-selftest/recipes-test/images/wic-image-minimal.wks +++ b/meta-selftest/recipes-test/images/wic-image-minimal.wks | |||
@@ -4,6 +4,7 @@ | |||
4 | 4 | ||
5 | part /boot --source bootimg-pcbios --ondisk sda --label boot --active --align 1024 | 5 | part /boot --source bootimg-pcbios --ondisk sda --label boot --active --align 1024 |
6 | part / --source rootfs --ondisk sda --fstype=ext4 --label platform --align 1024 --use-uuid | 6 | part / --source rootfs --ondisk sda --fstype=ext4 --label platform --align 1024 --use-uuid |
7 | part /media --source rootfs --rootfs-dir=wic-image-minimal --ondisk sda --fstype=ext4 --label uuid-test --align 1024 --use-uuid --fsuuid 2c71ef06-a81d-4735-9d3a-379b69c6bdba | ||
7 | part /mnt --source rootfs --rootfs-dir=wic-image-minimal --ondisk sda --fstype=ext4 --label core --align 1024 | 8 | part /mnt --source rootfs --rootfs-dir=wic-image-minimal --ondisk sda --fstype=ext4 --label core --align 1024 |
8 | 9 | ||
9 | bootloader --ptable gpt --timeout=0 --append="rootwait console=tty0" | 10 | bootloader --ptable gpt --timeout=0 --append="rootwait console=tty0" |
diff --git a/meta/lib/oeqa/selftest/cases/wic.py b/meta/lib/oeqa/selftest/cases/wic.py index 651d575dc3..ccbc82ed9b 100644 --- a/meta/lib/oeqa/selftest/cases/wic.py +++ b/meta/lib/oeqa/selftest/cases/wic.py | |||
@@ -634,10 +634,13 @@ part /etc --source rootfs --ondisk mmcblk0 --fstype=ext4 --exclude-path bin/ --r | |||
634 | self.remove_config(config) | 634 | self.remove_config(config) |
635 | 635 | ||
636 | with runqemu('wic-image-minimal', ssh=False) as qemu: | 636 | with runqemu('wic-image-minimal', ssh=False) as qemu: |
637 | cmd = "mount |grep '^/dev/' | cut -f1,3 -d ' '" | 637 | cmd = "mount |grep '^/dev/' | cut -f1,3 -d ' ' | sort" |
638 | status, output = qemu.run_serial(cmd) | ||
639 | self.assertEqual(output, '/dev/root /\r\n/dev/sda1 /boot\r\n/dev/sda3 /media\r\n/dev/sda4 /mnt') | ||
640 | cmd = "grep UUID= /etc/fstab" | ||
638 | status, output = qemu.run_serial(cmd) | 641 | status, output = qemu.run_serial(cmd) |
639 | self.assertEqual(1, status, 'Failed to run command "%s": %s' % (cmd, output)) | 642 | self.assertEqual(1, status, 'Failed to run command "%s": %s' % (cmd, output)) |
640 | self.assertEqual(output, '/dev/root /\r\n/dev/sda1 /boot\r\n/dev/sda3 /mnt') | 643 | self.assertEqual(output, 'UUID=2c71ef06-a81d-4735-9d3a-379b69c6bdba\t/media\text4\tdefaults\t0\t0') |
641 | 644 | ||
642 | @only_for_arch(['i586', 'i686', 'x86_64']) | 645 | @only_for_arch(['i586', 'i686', 'x86_64']) |
643 | @OETestID(1852) | 646 | @OETestID(1852) |