Allow run_tests.sh to be executed from anywhere

This commit is contained in:
Tom "Ravi" Hale
2018-09-12 15:44:51 +07:00
parent a580c53004
commit 21d155776a

View File

@@ -8,8 +8,9 @@ failed=false
if [ -z "$TEST_SHELLS" ]; then
TEST_SHELLS="bash zsh"
fi
echo "== Will run all tests with following shells: ${TEST_SHELLS}"
builtin cd -P -- "${0%/*}" # Change to directory this script lives in
for test in $(find test/lib -name *_test.sh); do
for shell in $TEST_SHELLS; do
echo "== Running tests with [$shell]: $test"