diff options
author | Jose Perez Carranza <jose.perez.carranza@linux.intel.com> | 2016-12-06 11:29:01 -0600 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-12-16 08:30:01 +0000 |
commit | 82b171f3b37e6733997fc1e7685b7cac5a3476e7 (patch) | |
tree | 23568f21db11479249723275de91d69935955976 /meta-selftest/recipes-test | |
parent | a8ff789a3bfedcbc4358db7907a45270d8b1b76a (diff) | |
download | openembedded-core-82b171f3b37e6733997fc1e7685b7cac5a3476e7.tar.gz openembedded-core-82b171f3b37e6733997fc1e7685b7cac5a3476e7.tar.bz2 openembedded-core-82b171f3b37e6733997fc1e7685b7cac5a3476e7.zip |
postinst: Add a test case to verify postinst scripts behavior
Add test case that verify behavior of postinst scripts at
roofts time and when is delayed to the first boot directly
on the target.
Signed-off-by: Jose Perez Carranza <jose.perez.carranza@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Diffstat (limited to 'meta-selftest/recipes-test')
-rw-r--r-- | meta-selftest/recipes-test/postinst/postinst_1.0.bb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/meta-selftest/recipes-test/postinst/postinst_1.0.bb b/meta-selftest/recipes-test/postinst/postinst_1.0.bb index 97a1987305..6d49734277 100644 --- a/meta-selftest/recipes-test/postinst/postinst_1.0.bb +++ b/meta-selftest/recipes-test/postinst/postinst_1.0.bb @@ -24,6 +24,7 @@ RDEPENDS_${PN}-delayed-t = "${PN}-delayed-p" # Main recipe post-install pkg_postinst_${PN}-at-rootfs () { tfile="/etc/postinsta-test" + touch "$D"/this-was-created-at-rootfstime if test "x$D" != "x" then # Need to run on first boot exit 1 @@ -42,6 +43,7 @@ pkg_postinst_${PN}-delayed-a () { # Need to run on first boot exit 1 else + touch /etc/this-was-created-at-first-boot if test -e $efile ; then echo 'success' > $tfile else |