]> the.earth.li Git - onak.git/blobdiff - t/all-050-get-hash.t
Pass config file name into test scripts
[onak.git] / t / all-050-get-hash.t
index 4913134e899c23ef79c0a86b3404dfdedec279b3..ef83dc255dfc6fee4db2f84046f2a68648591951 100755 (executable)
@@ -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 | \
+../onak -b -c $1 add < ../keys/noodles.key
+if ! ../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