From 06d8fa7fbdaaaacbae5d0c8aef956b84c42355d1 Mon Sep 17 00:00:00 2001 From: Anatoli Babenia Date: Wed, 29 Jul 2020 20:12:02 +0300 Subject: [PATCH] `cd` to tests/ dir when runner is executed with relpath --- tests/run-tests.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/run-tests.sh b/tests/run-tests.sh index f5db9cff..36461f50 100644 --- a/tests/run-tests.sh +++ b/tests/run-tests.sh @@ -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