]> the.earth.li Git - onak.git/blobdiff - t/all-020-get.t
Cleanup tests to be able to run from a different directory
[onak.git] / t / all-020-get.t
index 75649286a469ea7d8ed7eec5d7eb5b02a3d231a4..7fd617a3a72155322d009db161b039599047f116 100755 (executable)
@@ -3,9 +3,9 @@
 
 set -e
 
-cd t
-../onak -b -c $1 add < ../keys/noodles.key
-if ! ../onak -c $1 get 0x94FA372B2DA8B985 2> /dev/null | \
+cd ${WORKDIR}
+${BUILDDIR}/onak -b -c $1 add < ${TESTSDIR}/../keys/noodles.key
+if ! ${BUILDDIR}/onak -c $1 get 0x94FA372B2DA8B985 2> /dev/null | \
        grep -q -- '-----BEGIN PGP PUBLIC KEY BLOCK-----'; then
        echo "* Did not correctly retrieve key by keyid."
        exit 1