summaryrefslogtreecommitdiff
path: root/tests/sharness.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tests/sharness.sh')
-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.