From 5b9ceb8d2d2f3549cbc1b270122c05c3e7e68734 Mon Sep 17 00:00:00 2001 From: Albert Santoni Date: Wed, 12 Mar 2014 18:01:27 -0400 Subject: [PATCH] Made the runtests.sh script work regardless of CWD --- airtime_mvc/tests/runtests.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/airtime_mvc/tests/runtests.sh b/airtime_mvc/tests/runtests.sh index 31b8588dc..faf6628ef 100755 --- a/airtime_mvc/tests/runtests.sh +++ b/airtime_mvc/tests/runtests.sh @@ -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