File tree 2 files changed +5
-5
lines changed
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 198
198
}
199
199
200
200
script_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" " /"
202
202
cat << EOF >> test.ucl
203
203
lua_scripts: {
204
204
post-install: [ <<EOS
@@ -216,12 +216,12 @@ pkg: lua script failed\n"
216
216
atf_check \
217
217
-o empty \
218
218
-e empty \
219
- -s exit:0 \
219
+ -s exit:1 \
220
220
pkg create -M test.ucl
221
221
mkdir -p ${TMPDIR} /target
222
222
atf_check \
223
223
-e inline:" ${ERR} " \
224
- -s exit:0 \
224
+ -s exit:1 \
225
225
pkg -o REPOS_DIR=/dev/null -r ${TMPDIR} /target install -qfy ${TMPDIR} /test-1.pkg
226
226
}
227
227
Original file line number Diff line number Diff line change @@ -301,7 +301,7 @@ ATF_TC_BODY(override, tc)
301
301
}
302
302
exit (lua_tonumber (L , -1 ));
303
303
}
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" , "" );
305
305
306
306
p = atf_utils_fork ();
307
307
if (p == 0 ) {
@@ -310,7 +310,7 @@ ATF_TC_BODY(override, tc)
310
310
}
311
311
exit (lua_tonumber (L , -1 ));
312
312
}
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" , "" );
314
314
315
315
int rootfd = open (getcwd (NULL , 0 ), O_DIRECTORY );
316
316
lua_pushinteger (L , rootfd );
You can’t perform that action at this time.
0 commit comments