Skip to content

Commit

Permalink
cd to tests/ dir when runner is executed with relpath
Browse files Browse the repository at this point in the history
  • Loading branch information
abitrolly committed Jul 29, 2020
1 parent 40d18da commit 06d8fa7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/run-tests.sh
Expand Up @@ -10,6 +10,9 @@
# 2) configure CHTSH_URL
# 3) run the script

# work from script's dir
cd "$(dirname "$0")" || exit

PYTHON="${PYTHON:-../ve/bin/python}"
"$PYTHON" --version 2>&1 | grep -q 'Python 2' && python_version=2 || python_version=3

Expand Down

0 comments on commit 06d8fa7

Please sign in to comment.