diff options
Diffstat (limited to 'meta-selftest/recipes-test')
-rw-r--r-- | meta-selftest/recipes-test/postinst/postinst_1.0.bb | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/meta-selftest/recipes-test/postinst/postinst_1.0.bb b/meta-selftest/recipes-test/postinst/postinst_1.0.bb index 112aa08c80..d4bab6dcc2 100644 --- a/meta-selftest/recipes-test/postinst/postinst_1.0.bb +++ b/meta-selftest/recipes-test/postinst/postinst_1.0.bb | |||
@@ -35,14 +35,9 @@ pkg_postinst_${PN}-rootfs () { | |||
35 | 35 | ||
36 | # Depends on rootfs, delays until first boot, verifies that the rootfs file was | 36 | # Depends on rootfs, delays until first boot, verifies that the rootfs file was |
37 | # written. | 37 | # written. |
38 | pkg_postinst_${PN}-delayed-a () { | 38 | pkg_postinst_ontarget_${PN}-delayed-a () { |
39 | set -e | 39 | set -e |
40 | 40 | ||
41 | if [ -n "$D" ]; then | ||
42 | echo "Delaying ${PN}-delayed-a until first boot" | ||
43 | exit 1 | ||
44 | fi | ||
45 | |||
46 | if [ ! -e ${TESTDIR}/rootfs ]; then | 41 | if [ ! -e ${TESTDIR}/rootfs ]; then |
47 | echo "${PN}-delayed-a: ${TESTDIR}/rootfs not found" | 42 | echo "${PN}-delayed-a: ${TESTDIR}/rootfs not found" |
48 | exit 1 | 43 | exit 1 |
@@ -53,14 +48,9 @@ pkg_postinst_${PN}-delayed-a () { | |||
53 | 48 | ||
54 | # Depends on delayed-a, delays until first boot, verifies that the delayed-a file was | 49 | # Depends on delayed-a, delays until first boot, verifies that the delayed-a file was |
55 | # written. This verifies the ordering between delayed postinsts. | 50 | # written. This verifies the ordering between delayed postinsts. |
56 | pkg_postinst_${PN}-delayed-b () { | 51 | pkg_postinst_ontarget_${PN}-delayed-b () { |
57 | set -e | 52 | set -e |
58 | 53 | ||
59 | if [ -n "$D" ]; then | ||
60 | echo "Delaying ${PN}-delayed-b until first boot" | ||
61 | exit 1 | ||
62 | fi | ||
63 | |||
64 | if [ ! -e ${TESTDIR}/delayed-a ]; then | 54 | if [ ! -e ${TESTDIR}/delayed-a ]; then |
65 | echo "${PN}-delayed-b: ${TESTDIR}/delayed-a not found" | 55 | echo "${PN}-delayed-b: ${TESTDIR}/delayed-a not found" |
66 | exit 1 | 56 | exit 1 |