Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-o committed Mar 1, 2023
1 parent b14da2a commit 6d41823
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions tests/frontend/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ tests_init \
metalog \
reinstall \
pre_script_fail \
post_script_ignored \
post_script_fail \
install_missing_dep

test_setup()
Expand Down Expand Up @@ -150,7 +150,7 @@ EOF
pkg -o REPOS_DIR="/dev/null" install -y ${TMPDIR}/test-1.pkg
}

post_script_ignored_body()
post_script_fail_body()
{
atf_check -s exit:0 sh ${RESOURCEDIR}/test_subr.sh new_pkg test test 1
cat << EOF >> test.ucl
Expand All @@ -167,7 +167,7 @@ EOF

atf_check -o ignore \
-e inline:"${PROGNAME}: POST-INSTALL script failed\n" \
-s exit:0 \
-s exit:3 \
pkg -o REPOS_DIR="/dev/null" install -y ${TMPDIR}/test-1.pkg
}

Expand Down
2 changes: 1 addition & 1 deletion tests/frontend/lua.sh
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ pkg: lua script failed\n"
mkdir -p ${TMPDIR}/target
atf_check \
-e inline:"${ERR}" \
-s exit:0 \
-s exit:3 \
pkg -o REPOS_DIR=/dev/null -r ${TMPDIR}/target install -qfy ${TMPDIR}/test-1.pkg
}

Expand Down

0 comments on commit 6d41823

Please sign in to comment.