diff --git a/_tests/all-tests.sh b/_tests/all-tests.sh index e6e01129..158413d6 100644 --- a/_tests/all-tests.sh +++ b/_tests/all-tests.sh @@ -10,13 +10,17 @@ echo Tests in Trash: $tests failed=() for i in $tests do - bash $i + dir=`dirname $i` + fn=`basename $i` + pushd $dir + bash $fn result=$? if [ "$result" != 0 ] then echo Failed $i failed+=( $i ) fi + popd done if (( ${#failed[@]} != 0 )) then