diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2014-04-24 04:05:40 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2014-04-24 04:05:40 +0200 |
commit | cd034e872d1a273961ef5612239d5e8168eb8843 (patch) | |
tree | 26a7f2d394d7c1f6c1277ed158a3661c0b777a32 /tests/setup.sh | |
parent | a759d964e40d160d901052ec90e53c5acbe60355 (diff) | |
download | pass-cd034e872d1a273961ef5612239d5e8168eb8843.tar.gz pass-cd034e872d1a273961ef5612239d5e8168eb8843.tar.bz2 pass-cd034e872d1a273961ef5612239d5e8168eb8843.zip |
tests: run from anywhere
Diffstat (limited to '')
-rw-r--r--[-rwxr-xr-x] | tests/setup.sh | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/setup.sh b/tests/setup.sh index 8198874..334b367 100755..100644 --- a/tests/setup.sh +++ b/tests/setup.sh @@ -6,9 +6,11 @@ # $KEY{1..5} GPG key ids of testing keys # $TEST_HOME This folder -. ./sharness.sh -TEST_HOME="$(cd "$(dirname "$SHARNESS_TEST_FILE")/.."; pwd)" +# We must be called from tests/ !! +TEST_HOME="$(pwd)" + +. ./sharness.sh export PASSWORD_STORE_DIR="$SHARNESS_TRASH_DIRECTORY/test-store/" rm -rf "$PASSWORD_STORE_DIR" |