summaryrefslogtreecommitdiffstats
path: root/meta/lib/oeqa/selftest/cases/runtime_test.py
diff options
context:
space:
mode:
authorAlexander Kanavin <alexander.kanavin@linux.intel.com>2018-08-28 16:43:59 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-09-04 11:03:55 +0100
commit5e3a07180b7357c780b76a1feec1785b33603aeb (patch)
tree57233895df7e11f199326727503ae7d6a939b48a /meta/lib/oeqa/selftest/cases/runtime_test.py
parent4434777705cf49300a7d2c9ca8fa3080d551d795 (diff)
downloadpoky-5e3a07180b7357c780b76a1feec1785b33603aeb.tar.gz
lib/oe/package_manager: turn postinst failure warnings into bitbake failures
Sumo release provides a transition period so that deferrals to first boot via 'exit 1' can be converted to pkg_postinst_ontarget(). For the next release however, postinst script failures should be treated as such. [YOCTO #12607] (From OE-Core rev: 42acb0ebde4e88bcdf34a541b700f19d8607abb0) Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oeqa/selftest/cases/runtime_test.py')
-rw-r--r--meta/lib/oeqa/selftest/cases/runtime_test.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/lib/oeqa/selftest/cases/runtime_test.py b/meta/lib/oeqa/selftest/cases/runtime_test.py
index 30fd9b2a50..376c3c5146 100644
--- a/meta/lib/oeqa/selftest/cases/runtime_test.py
+++ b/meta/lib/oeqa/selftest/cases/runtime_test.py
@@ -249,8 +249,8 @@ class Postinst(OESelftestTestCase):
249 features = 'CORE_IMAGE_EXTRA_INSTALL = "postinst-rootfs-failing"\n' 249 features = 'CORE_IMAGE_EXTRA_INSTALL = "postinst-rootfs-failing"\n'
250 features += 'PACKAGE_CLASSES = "%s"\n' % classes 250 features += 'PACKAGE_CLASSES = "%s"\n' % classes
251 self.write_config(features) 251 self.write_config(features)
252 bb_result = bitbake('core-image-minimal') 252 bb_result = bitbake('core-image-minimal', ignore_status=True)
253 self.assertGreaterEqual(bb_result.output.find("Intentionally failing postinstall scriptlets of ['postinst-rootfs-failing'] to defer them to first boot is deprecated."), 0, 253 self.assertGreaterEqual(bb_result.output.find("Postinstall scriptlets of ['postinst-rootfs-failing'] have failed."), 0,
254 "Warning about a failed scriptlet not found in bitbake output: %s" %(bb_result.output)) 254 "Warning about a failed scriptlet not found in bitbake output: %s" %(bb_result.output))
255 255
256 self.assertTrue(os.path.isfile(os.path.join(hosttestdir, "rootfs-before-failure")), 256 self.assertTrue(os.path.isfile(os.path.join(hosttestdir, "rootfs-before-failure")),