]> code.ossystems Code Review - openembedded-core.git/commitdiff
oeqa/selftest/buildoptions: test read-only-rootfs
authorRoss Burton <ross.burton@intel.com>
Thu, 17 Mar 2016 22:09:25 +0000 (22:09 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 20 Mar 2016 22:57:57 +0000 (22:57 +0000)
Add a test to build core-image-sato with read-only-rootfs enabled.

[ YOCTO #9214 ]

Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/lib/oeqa/selftest/buildoptions.py

index 491ce50ea7723cd61cde31f0ab610908b386ec4b..2fc77e1ed4226aacc1826806efd56f732f246b00 100644 (file)
@@ -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):