selftest: update output checks in incremental image test to match what dnf prints
(From OE-Core rev: 6c434a711c0d281ecc9aeff488b63b80a338b229) Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
648a5d6c49
commit
f72bc777fa
|
@ -22,12 +22,12 @@ class ImageOptionsTests(oeSelfTest):
|
|||
bitbake("core-image-minimal")
|
||||
log_data_file = os.path.join(get_bb_var("WORKDIR", "core-image-minimal"), "temp/log.do_rootfs")
|
||||
log_data_created = ftools.read_file(log_data_file)
|
||||
incremental_created = re.search("NOTE: load old install solution for incremental install\nNOTE: old install solution not exist\nNOTE: creating new install solution for incremental install(\n.*)*NOTE: Installing the following packages:.*packagegroup-core-ssh-openssh", log_data_created)
|
||||
incremental_created = re.search("Installing : packagegroup-core-ssh-openssh", log_data_created)
|
||||
self.remove_config('IMAGE_FEATURES += "ssh-server-openssh"')
|
||||
self.assertTrue(incremental_created, msg = "Match failed in:\n%s" % log_data_created)
|
||||
bitbake("core-image-minimal")
|
||||
log_data_removed = ftools.read_file(log_data_file)
|
||||
incremental_removed = re.search("NOTE: load old install solution for incremental install\nNOTE: creating new install solution for incremental install(\n.*)*NOTE: incremental removed:.*openssh-sshd-.*", log_data_removed)
|
||||
incremental_removed = re.search("Erasing : packagegroup-core-ssh-openssh", log_data_removed)
|
||||
self.assertTrue(incremental_removed, msg = "Match failed in:\n%s" % log_data_removed)
|
||||
|
||||
@testcase(286)
|
||||
|
|
Loading…
Reference in New Issue