about summary refs log tree commit diff
path: root/Test/ztst.zsh
diff options
context:
space:
mode:
Diffstat (limited to 'Test/ztst.zsh')
-rwxr-xr-xTest/ztst.zsh3
1 files changed, 3 insertions, 0 deletions
diff --git a/Test/ztst.zsh b/Test/ztst.zsh
index 8ce94fca1..7e82f8a5b 100755
--- a/Test/ztst.zsh
+++ b/Test/ztst.zsh
@@ -43,6 +43,9 @@ ZTST_mainopts=(${(kv)options})
 ZTST_testdir=$PWD
 ZTST_testname=$1
 
+# The source directory is not necessarily the current directory
+ZTST_srcdir=${0%/*}
+
 : ${TMPPREFIX:=/tmp/zsh}
 # Temporary files for redirection inside tests.
 ZTST_in=${TMPPREFIX}.ztst.in.$$