diff --git a/tests/run-tests b/tests/run-tests index 360605ab..a790d4c7 100755 --- a/tests/run-tests +++ b/tests/run-tests @@ -8,8 +8,8 @@ echo_header() { #------------------------------------------------------------------------------# -if [ -d tests ]; then - cd tests +if [ ! -d tests ]; then + cd .. fi set -x # show each command as it is executed @@ -17,7 +17,6 @@ set -x # show each command as it is executed #------------------------------------------------------------------------------# echo_header "run commit hooks" -cd $WORKSPACE test -x ./hooks/pre-commit && ./hooks/pre-commit #------------------------------------------------------------------------------#