]> the.earth.li Git - onak.git/blobdiff - t/all-030-get-fail.t
Cleanup tests to be able to run from a different directory
[onak.git] / t / all-030-get-fail.t
index 8d1bea66896b95810b3348c53af18a117971a195..77268043ad5b21924140d5ca35481ff58def9cc9 100755 (executable)
@@ -3,9 +3,9 @@
 
 set -e
 
-cd t
-../onak -b -c $1 add < ../keys/noodles.key
-if ! ../onak -c $1 get 0x12345678 2>&1 | \
+cd ${WORKDIR}
+${BUILDDIR}/onak -b -c $1 add < ${TESTSDIR}/../keys/noodles.key
+if ! ${BUILDDIR}/onak -c $1 get 0x12345678 2>&1 | \
        grep -q 'Key not found'; then
        echo "* Did not correctly error on non-existent key"
        exit 1