summaryrefslogtreecommitdiffstats
path: root/meta/lib/oeqa
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@intel.com>2016-03-17 22:09:25 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-03-20 22:57:57 +0000
commitc23dc788386a8d3636f7f656667dc87052cf73d9 (patch)
treefd0a743fbf9457abd60d8d373a32578653a1483e /meta/lib/oeqa
parent206a95065628a839c589452de7aa646c90e02f5d (diff)
downloadopenembedded-core-c23dc788386a8d3636f7f656667dc87052cf73d9.tar.gz
openembedded-core-c23dc788386a8d3636f7f656667dc87052cf73d9.tar.bz2
openembedded-core-c23dc788386a8d3636f7f656667dc87052cf73d9.zip
oeqa/selftest/buildoptions: test read-only-rootfs
Add a test to build core-image-sato with read-only-rootfs enabled. [ YOCTO #9214 ] Signed-off-by: Ross Burton <ross.burton@intel.com>
Diffstat (limited to 'meta/lib/oeqa')
-rw-r--r--meta/lib/oeqa/selftest/buildoptions.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/meta/lib/oeqa/selftest/buildoptions.py b/meta/lib/oeqa/selftest/buildoptions.py
index 491ce50ea7..2fc77e1ed4 100644
--- a/meta/lib/oeqa/selftest/buildoptions.py
+++ b/meta/lib/oeqa/selftest/buildoptions.py
@@ -57,6 +57,10 @@ class ImageOptionsTests(oeSelfTest):
res = runCmd("grep ccache %s" % (os.path.join(get_bb_var("WORKDIR","m4"),"temp/log.do_compile")), ignore_status=True)
self.assertEqual(0, res.status, msg="No match for ccache in m4 log.do_compile. For further details: %s" % os.path.join(get_bb_var("WORKDIR","m4"),"temp/log.do_compile"))
+ def test_read_only_image(self):
+ self.write_config('IMAGE_FEATURES += "read-only-rootfs"')
+ bitbake("core-image-sato")
+ # do_image will fail if there are any pending postinsts
class DiskMonTest(oeSelfTest):