]> code.ossystems Code Review - openembedded-core.git/commit
selftest/wic: update test case test_qemu
authorKai Kang <kai.kang@windriver.com>
Wed, 16 Jan 2019 07:45:42 +0000 (15:45 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 16 Jan 2019 11:08:29 +0000 (11:08 +0000)
commit8e3311d45ec68d74e934e966f67cf5102634981c
tree43bc04ff440fa1ff965727d6ee323c676017fc9f
parent781117f9f02c0080dadc8797a8f8f9377a99b164
selftest/wic: update test case test_qemu

This test case boots the image in qemu and checks for mounted partitions.
But the outputs of mount are different between sysvinit and systemd:

sysvinit:
/dev/root /\r\n/dev/sda1 /boot\r\n/dev/sda3 /media\r\n/dev/sda4 /mnt
systemd:
/dev/sda1 /boot\r\n/dev/sda2 /\r\n/dev/sda3 /media\r\n/dev/sda4 /mnt

So check mounted partitions by egrep rather than check output of runqemu.

Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oeqa/selftest/cases/wic.py