X-Git-Url: https://the.earth.li/gitweb/?p=onak.git;a=blobdiff_plain;f=t%2Fall-090-get-subkey-short.t;h=9927a1ef845f5d740f9290fc27828f23f22b0e4b;hp=d120598969ea13a181778b336c23ed1875a072fc;hb=94422621d7c1300ae7001d13590570f9d4ad2a07;hpb=adc800dbc424a1e246dd4a82a0c2e88eeda25531 diff --git a/t/all-090-get-subkey-short.t b/t/all-090-get-subkey-short.t index d120598..9927a1e 100755 --- a/t/all-090-get-subkey-short.t +++ b/t/all-090-get-subkey-short.t @@ -9,14 +9,14 @@ if [ "$2" = "file" ]; then exit 0 fi -cd t -../onak -b -c $1 add < ../keys/noodles.key -if ! ../onak -c $1 get 0xB9A66E35 2> /dev/null | \ +cd ${WORKDIR} +${BUILDDIR}/onak -b -c $1 add < ${TESTSDIR}/../keys/noodles.key +if ! ${BUILDDIR}/onak -c $1 get 0xB9A66E35 2> /dev/null | \ grep -q -- '-----BEGIN PGP PUBLIC KEY BLOCK-----'; then echo "* Did not correctly retrieve key by subkey id." exit 1 fi -if ! ../onak -c $1 get 0xCF3FBAD1 2> /dev/null | \ +if ! ${BUILDDIR}/onak -c $1 get 0xCF3FBAD1 2> /dev/null | \ grep -q -- '-----BEGIN PGP PUBLIC KEY BLOCK-----'; then echo "* Did not correctly retrieve key by subkey id." exit 1