Use --detach in tests to avoid waiting
This commit is contained in:
@@ -10,6 +10,7 @@ TESTS = $(SCRIPT_TESTS)
|
||||
port = 49188
|
||||
|
||||
do_subst = sed -e 's,[@]srcdir[@],$(srcdir),g' \
|
||||
-e 's,[@]env_setup[@],$(top_builddir)/tests/bin/setup-env,g' \
|
||||
-e 's,[@]port[@],$(port),g' \
|
||||
-e 's,[@]objdir[@],$(top_builddir)/tests/plugin,g' \
|
||||
-e 's,[@]EGREP[@],$(EGREP),g'
|
||||
|
@@ -35,9 +35,12 @@
|
||||
#
|
||||
|
||||
srcdir="@srcdir@"
|
||||
env_setup="@env_setup@"
|
||||
objdir="@objdir@"
|
||||
EGREP="@EGREP@"
|
||||
|
||||
. ${env_setup}
|
||||
|
||||
testfailed="echo test failed; cat messages.log; exit 1"
|
||||
|
||||
# If there is no useful db support compile in, disable test
|
||||
@@ -92,14 +95,8 @@ echo "Empty log"
|
||||
> messages.log
|
||||
|
||||
echo Starting kdc
|
||||
${kdc} &
|
||||
kdcpid=$!
|
||||
|
||||
sh ${srcdir}/../kdc/wait-kdc.sh
|
||||
if [ "$?" != 0 ] ; then
|
||||
kill ${kdcpid}
|
||||
exit 1
|
||||
fi
|
||||
${kdc} --detach --testing || { echo "kdc failed to start"; exit 1; }
|
||||
kdcpid=`getpid kdc`
|
||||
|
||||
trap "kill ${kdcpid}; echo signal killing kdc; exit 1;" EXIT
|
||||
|
||||
|
Reference in New Issue
Block a user