diff options
author | Mark Anderson <ma.skies@gmail.com> | 2011-06-28 16:11:32 -0600 |
---|---|---|
committer | Carl Worth <cworth@cworth.org> | 2011-06-28 16:01:56 -0700 |
commit | eb4cf465a5c179c711c15649fc90c7377850cb77 (patch) | |
tree | ccc18f56b2bab21f6f6eda0af9282aa854e2d2db /test/crypto | |
parent | 273d896097830235eca5f1bc87ac03e381280f1c (diff) |
test:Improve test behaviors when --root is used
Change add_email_corpus, emacs_deliver_message and tests to use
$TEST_DIRECTORY instead of '..'.
This improves the behavior of the usage of --root=<dir>, as the
assumption of what '..' means will usually be incorrect.
Document -root option in README and update valgrind to work with
-root.
Diffstat (limited to 'test/crypto')
-rwxr-xr-x | test/crypto | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/crypto b/test/crypto index 01daffe..7eb3559 100755 --- a/test/crypto +++ b/test/crypto @@ -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 |