Skip to content

Commit

Permalink
Skip mdb_stat test when the command is not available
Browse files Browse the repository at this point in the history
  • Loading branch information
Viktor Dukhovni authored and vdukhovni committed Mar 10, 2017
1 parent a39bd42 commit 2baa0a0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/kdc/check-iprop.in
Expand Up @@ -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}'`
Expand Down

0 comments on commit 2baa0a0

Please sign in to comment.