Skip to content

Commit 6d41823

Browse files
committed
Fix tests
1 parent b14da2a commit 6d41823

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

tests/frontend/install.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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

1212
test_setup()
@@ -150,7 +150,7 @@ EOF
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
@@ -167,7 +167,7 @@ EOF
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

tests/frontend/lua.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)