summaryrefslogtreecommitdiff
path: root/tests/sharness.sh
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2014-04-24 04:05:40 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2014-04-24 04:05:40 +0200
commitcd034e872d1a273961ef5612239d5e8168eb8843 (patch)
tree26a7f2d394d7c1f6c1277ed158a3661c0b777a32 /tests/sharness.sh
parenta759d964e40d160d901052ec90e53c5acbe60355 (diff)
downloadpass-cd034e872d1a273961ef5612239d5e8168eb8843.tar.gz
pass-cd034e872d1a273961ef5612239d5e8168eb8843.tar.bz2
pass-cd034e872d1a273961ef5612239d5e8168eb8843.zip
tests: run from anywhere
Diffstat (limited to '')
-rw-r--r--tests/sharness.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/sharness.sh b/tests/sharness.sh
index 380f22c..b7ecc56 100644
--- a/tests/sharness.sh
+++ b/tests/sharness.sh
@@ -668,7 +668,7 @@ PATH="$SHARNESS_BUILD_DIRECTORY:$PATH"
export PATH SHARNESS_BUILD_DIRECTORY
# Public: Path to test script currently executed.
-SHARNESS_TEST_FILE="$0"
+SHARNESS_TEST_FILE="./$(basename "$0")"
export SHARNESS_TEST_FILE
# Prepare test area.