diff --git a/tests/kdc/check-iprop.in b/tests/kdc/check-iprop.in index d1b48c2fb..39be7ef60 100644 --- a/tests/kdc/check-iprop.in +++ b/tests/kdc/check-iprop.in @@ -446,13 +446,13 @@ ${iprop_log} last-version > slave-last.tmp ${iprop_log} last-version > master-last.tmp cmp master-last.tmp slave-last.tmp || exit 1 -if [ "$db_type" = lmdb ]; then +if [ "$db_type" = lmdb ] && type mdb_stat > /dev/null 2>&1; then # Sanity check that we have the same number of principals at the HDB # and LMDB levels. # # We should also do this for the sqlite backend, but that would # require a sqlite3(1) shell that is capable of opening our HDB - # files. W + # files. echo "checking that principals in DB == entries in LMDB" princs=`${kadmin} -l list '*' | wc -l` entries=`mdb_stat -n current-db.mdb | grep 'Entries:' | awk '{print $2}'`