Use --detach in tests to avoid waiting

This commit is contained in:
Nicolas Williams
2016-12-04 16:42:33 -06:00
parent 8735d47d8b
commit 2027aa11ed
26 changed files with 95 additions and 205 deletions

View File

@@ -96,14 +96,8 @@ ${kadmin} check ${R} || exit 1
echo foo > ${objdir}/foopassword
echo Starting kdc; > messages.log
${kdc} &
kdcpid=$!
sh ${wait_kdc}
if [ "$?" != 0 ] ; then
kill -9 ${kdcpid}
exit 1
fi
${kdc} --detach --testing || { echo "kdc failed to start"; exit 1; }
kdcpid=`getpid kdc`
trap "kill -9 ${kdcpid}; echo signal killing kdc; exit 1;" EXIT