X-Git-Url: https://the.earth.li/gitweb/?a=blobdiff_plain;f=t%2Fall-050-get-hash.t;h=dee252c9998ba3cd26dd7dab7378852c961d3bd2;hb=76f079e5ebdb34acaaa2462a8d915ee06d3c8425;hp=4913134e899c23ef79c0a86b3404dfdedec279b3;hpb=076ef5c84d05a564ed8031ced310336b3b331dfe;p=onak.git diff --git a/t/all-050-get-hash.t b/t/all-050-get-hash.t index 4913134..dee252c 100755 --- a/t/all-050-get-hash.t +++ b/t/all-050-get-hash.t @@ -5,13 +5,13 @@ set -e # Backends should really support this, but the file one is as simple as # possible, so doesn't. Skip the test for it. -if [ "$1" = "file" ]; then +if [ "$2" = "file" ]; then exit 0 fi -cd t -../onak -b -c test.conf add < ../keys/noodles.key -if ! ../onak -c test.conf hget 81929DAE08B8F80888DA524923B93067 2> /dev/null | \ +cd ${WORKDIR} +${BUILDDIR}/onak -b -c $1 add < ${TESTSDIR}/../keys/noodles.key +if ! ${BUILDDIR}/onak -c $1 hget 81929DAE08B8F80888DA524923B93067 2> /dev/null | \ grep -q -- '-----BEGIN PGP PUBLIC KEY BLOCK-----'; then echo "* Did not correctly retrieve key by text" exit 1