~samiam/MaraDNS

b690070ef376d99fcbfbf56d79051b8b729fad66 — Sam Trenholme a month ago f077882
coLunacyDNS sqa: Show full log on test fail
1 files changed, 6 insertions(+), 2 deletions(-)

M deadwood-github/tools/coLunacyDNS/sqa/do.tests
M deadwood-github/tools/coLunacyDNS/sqa/do.tests => deadwood-github/tools/coLunacyDNS/sqa/do.tests +6 -2
@@ 77,12 77,14 @@ FAIL=""
for test in $TESTS ; do
	echo Test $test
	cd $test
	if ! ./do.test > /dev/null 2>&1 ; then
	rm -f ../log
	if ! ./do.test > ../log 2>&1 ; then
		FAIL=${FAIL}${test}" "
		if [ ! -z "$DoStop" ] ; then
			echo Stopping tests because of test failure
			exit 1
		fi
		cat ../log
	fi
	cd "$HERE"
done


@@ 122,12 124,14 @@ TESTS=$TESTS" sqa_nobindIP" # 0.0.0.0 (for test)
for test in $TESTS ; do
	echo Test production $test
	cd $test
	if ! ./do.test > /dev/null 2>&1 ; then
	rm -f ../log
	if ! ./do.test > ../log 2>&1 ; then
		FAIL=${FAIL}${test}" (production)  "
		if [ ! -z "$DoStop" ] ; then
			echo Stopping tests because of test failure
			exit 1
		fi
		cat ../log
	fi
	ps auxw | awk "$PROCGET" | grep coLunacyDNS | awk '{print "kill " $1}
                ' | sh