File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 198198}
199199
200200script_execute_body () {
201- atf_check -s exit:0 sh ${RESOURCEDIR} /test_subr.sh new_pkg " test" " test" " 1" " /"
201+ atf_check -s exit:1 sh ${RESOURCEDIR} /test_subr.sh new_pkg " test" " test" " 1" " /"
202202 cat << EOF >> test.ucl
203203lua_scripts: {
204204 post-install: [ <<EOS
@@ -216,12 +216,12 @@ pkg: lua script failed\n"
216216 atf_check \
217217 -o empty \
218218 -e empty \
219- -s exit:0 \
219+ -s exit:1 \
220220 pkg create -M test.ucl
221221 mkdir -p ${TMPDIR} /target
222222 atf_check \
223223 -e inline:" ${ERR} " \
224- -s exit:0 \
224+ -s exit:1 \
225225 pkg -o REPOS_DIR=/dev/null -r ${TMPDIR} /target install -qfy ${TMPDIR} /test-1.pkg
226226}
227227
Original file line number Diff line number Diff line change @@ -301,7 +301,7 @@ ATF_TC_BODY(override, tc)
301301 }
302302 exit (lua_tonumber (L , -1 ));
303303 }
304- atf_utils_wait (p , 0 , "[string \"os.execute(\"/usr/bin/true\")\"]:1: os.execute not available\n" , "" );
304+ atf_utils_wait (p , 1 , "[string \"os.execute(\"/usr/bin/true\")\"]:1: os.execute not available\n" , "" );
305305
306306 p = atf_utils_fork ();
307307 if (p == 0 ) {
@@ -310,7 +310,7 @@ ATF_TC_BODY(override, tc)
310310 }
311311 exit (lua_tonumber (L , -1 ));
312312 }
313- atf_utils_wait (p , 0 , "[string \"os.exit(1)\"]:1: os.exit not available\n" , "" );
313+ atf_utils_wait (p , 1 , "[string \"os.exit(1)\"]:1: os.exit not available\n" , "" );
314314
315315 int rootfd = open (getcwd (NULL , 0 ), O_DIRECTORY );
316316 lua_pushinteger (L , rootfd );
You can’t perform that action at this time.
0 commit comments