File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ tests_init \
66 metalog \
77 reinstall \
88 pre_script_fail \
9- post_script_ignored \
9+ post_script_fail \
1010 install_missing_dep
1111
1212test_setup ()
150150 pkg -o REPOS_DIR=" /dev/null" install -y ${TMPDIR} /test-1.pkg
151151}
152152
153- post_script_ignored_body ()
153+ post_script_fail_body ()
154154{
155155 atf_check -s exit:0 sh ${RESOURCEDIR} /test_subr.sh new_pkg test test 1
156156 cat << EOF >> test.ucl
167167
168168 atf_check -o ignore \
169169 -e inline:" ${PROGNAME} : POST-INSTALL script failed\n" \
170- -s exit:0 \
170+ -s exit:3 \
171171 pkg -o REPOS_DIR=" /dev/null" install -y ${TMPDIR} /test-1.pkg
172172}
173173
Original file line number Diff line number Diff line change @@ -221,7 +221,7 @@ pkg: lua script failed\n"
221221 mkdir -p ${TMPDIR} /target
222222 atf_check \
223223 -e inline:" ${ERR} " \
224- -s exit:0 \
224+ -s exit:3 \
225225 pkg -o REPOS_DIR=/dev/null -r ${TMPDIR} /target install -qfy ${TMPDIR} /test-1.pkg
226226}
227227
You can’t perform that action at this time.
0 commit comments