X-Git-Url: https://the.earth.li/gitweb/?a=blobdiff_plain;f=t%2Fall-080-get-subkey.t;h=449b5687f7017bb54ead83ecdeec2d10fc0c4df3;hb=97c3564f800bbf922f771f79bfb7e8e014fc9b77;hp=ecccdf44e56175220288e26363f6543883d324c7;hpb=018dafe62a5fcb63626c01d8bafdc7330fc13278;p=onak.git diff --git a/t/all-080-get-subkey.t b/t/all-080-get-subkey.t index ecccdf4..449b568 100755 --- a/t/all-080-get-subkey.t +++ b/t/all-080-get-subkey.t @@ -5,18 +5,18 @@ 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 get 0x045281F1B9A66E35 2> /dev/null | \ +../onak -b -c $1 add < ../keys/noodles.key +if ! ../onak -c $1 get 0x045281F1B9A66E35 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 test.conf get 0xFF162FC5CF3FBAD1 2> /dev/null | \ +if ! ../onak -c $1 get 0xFF162FC5CF3FBAD1 2> /dev/null | \ grep -q -- '-----BEGIN PGP PUBLIC KEY BLOCK-----'; then echo "* Did not correctly retrieve key by subkey id." exit 1