The keys directory should be cleaned up in clean.sh. Doing that in the
test itself isn't reliable which may lead to failing mkdir which causes
the test to fail with set -e.
rm -f good-kasp.conf.in
rm -f good-server-christmas-tree.conf
rm -f good.conf good.conf.raw good.conf.out badzero.conf *.out
+rm -rf keys
rm -f ns*/named.lock
rm -rf test.keydir
status=0
n=0
-mkdir keys
+mkdir -p keys
n=$((n + 1))
echo_i "checking that named-checkconf handles a known good config ($n)"
if [ $ret != 0 ]; then echo_i "failed"; ret=1; fi
status=$((status + ret))
-rmdir keys
-
echo_i "exit status: $status"
[ $status -eq 0 ] || exit 1