Allow run_tests.sh to be executed from anywhere
This commit is contained in:
@@ -8,8 +8,9 @@ failed=false
|
|||||||
if [ -z "$TEST_SHELLS" ]; then
|
if [ -z "$TEST_SHELLS" ]; then
|
||||||
TEST_SHELLS="bash zsh"
|
TEST_SHELLS="bash zsh"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "== Will run all tests with following shells: ${TEST_SHELLS}"
|
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 test in $(find test/lib -name *_test.sh); do
|
||||||
for shell in $TEST_SHELLS; do
|
for shell in $TEST_SHELLS; do
|
||||||
echo "== Running tests with [$shell]: $test"
|
echo "== Running tests with [$shell]: $test"
|
||||||
|
|||||||
Reference in New Issue
Block a user