]> git.notmuchmail.org Git - notmuch/blobdiff - test/crypto
test:Improve test behaviors when --root is used
[notmuch] / test / crypto
index 01daffe7eb94a79f233f7004d57e24bef3ba8b41..7eb3559169ffafbfe7b29c087a48c9cc82a6109f 100755 (executable)
@@ -12,7 +12,7 @@ add_gnupg_home ()
     local output
     [ -d ${GNUPGHOME} ] && return
     mkdir -m 0700 "$GNUPGHOME"
-    gpg --no-tty --import <../gnupg-secret-key.asc >"$GNUPGHOME"/import.log 2>&1
+    gpg --no-tty --import <$TEST_DIRECTORY/gnupg-secret-key.asc >"$GNUPGHOME"/import.log 2>&1
     test_debug "cat $GNUPGHOME/import.log"
     if (gpg --quick-random --version >/dev/null 2>&1) ; then
        echo quick-random >> "$GNUPGHOME"/gpg.conf