Made the runtests.sh script work regardless of CWD

This commit is contained in:
Albert Santoni 2014-03-12 18:01:27 -04:00
parent e0386f9752
commit 5b9ceb8d2d

View file

@ -27,5 +27,11 @@ export RABBITMQ_PASSWORD
export RABBITMQ_VHOST
export AIRTIME_UNIT_TEST="1"
#Change the working directory to this script's directory
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd $DIR
#Run the unit tests
phpunit --log-junit test_results.xml