Skip to content

Commit 88b04e7

Browse files
committed
Support running test/run from outside the test/ directory
1 parent 59bf766 commit 88b04e7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/run

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ main() {
1919
exec -with-hooks <c-l>
2020
'
2121

22-
root=$PWD
22+
cd "$(dirname $0)"
23+
root="$PWD"
2324
tmpdir="${TMPDIR:-/tmp}"
2425
work=$(mktemp -d $tmpdir/kak-tests.XXXXXXXX)
2526
session="kak-tests"

0 commit comments

Comments
 (0)