]> code.ossystems Code Review - openembedded-core.git/commit
oe-selftest: add a test for failing package post-installation scriptlets
authorAlexander Kanavin <alexander.kanavin@linux.intel.com>
Mon, 12 Mar 2018 16:49:43 +0000 (18:49 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 12 Mar 2018 22:28:04 +0000 (15:28 -0700)
commit865fafb0dff19d27bd417c28c95fb8fdf0326a2b
tree0590d7ae4d01e9a33f3bad3b6b5b704281b5c536
parenta36671faf6e0b7623185b0e22814a786d5444592
oe-selftest: add a test for failing package post-installation scriptlets

The test runs a scriptlet that has an intentionally failing command in the middle
and checks for two things:
1) that bitbake does warn the user about the failure
2) that scriptlet execution stops at that point.

The test is run for all three package types: rpm, deb, ipk.

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta-selftest/recipes-test/postinst/postinst_1.0.bb
meta/lib/oeqa/selftest/cases/runtime_test.py