From 9f99bec1f0293e84d6d8a990a1940c1422e3b0ce Mon Sep 17 00:00:00 2001 From: Igor Chubin Date: Thu, 6 Aug 2020 08:02:27 +0200 Subject: [PATCH] fix: run-tests.sh: fixed cht.sh.txt path discovery --- tests/run-tests.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/run-tests.sh b/tests/run-tests.sh index 01f20a5..e89d14f 100644 --- a/tests/run-tests.sh +++ b/tests/run-tests.sh @@ -10,6 +10,8 @@ # 2) configure CHTSH_URL # 3) run the script +CHTSH_SCRIPT=$(dirname "$(dirname "$(realpath "$(readlink -f "$0")")")")/share/cht.sh.txt + # work from script's dir cd "$(dirname "$0")" || exit @@ -33,7 +35,7 @@ TMP2=$(mktemp /tmp/cht.sh.tests-XXXXXXXXXXXXXX) TMP3=$(mktemp /tmp/cht.sh.tests-XXXXXXXXXXXXXX) trap 'rm -rf $TMP $TMP2 $TMP3' EXIT -CHTSH_SCRIPT=$(dirname "$(dirname "$(readlink -f "$0")")")/share/cht.sh.txt +echo "Using cht.sh client at $CHTSH_SCRIPT" export PYTHONIOENCODING=UTF-8