Skip to content

Commit

Permalink
tests: support running from root _or_ tests dir
Browse files Browse the repository at this point in the history
  • Loading branch information
olets committed May 13, 2024
1 parent 90e57ab commit 9cc5f9a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/index.ztr.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ main() {
cmd=$1

abbr_dir=${0:A:h}
if [[ $abbr_dir =~ "/tests" ]]; then
abbr_dir+=/..
fi

test_dir=$abbr_dir/tests

# Save user configuration
Expand Down

0 comments on commit 9cc5f9a

Please sign in to comment.