diff options
Diffstat (limited to '')
-rwxr-xr-x | .travis/lib/test.sh (renamed from .travis/test.sh) | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/.travis/test.sh b/.travis/lib/test.sh index 83c4efa..c91ce48 100755 --- a/.travis/test.sh +++ b/.travis/lib/test.sh @@ -7,6 +7,10 @@ set -o errexit -o nounset -o pipefail +script_dir="$( dirname -- "${BASH_SOURCE[0]}" )" +script_dir="$( cd -- "$script_dir" && pwd )" +readonly script_dir + run_test() { local arg echo @@ -17,7 +21,7 @@ run_test() { echo echo ====================================================================== - python3 -m "$@" + PYTHONPATH="$script_dir/../.." python3 -m "$@" } run_test "$@" |