From 777df9e17771a4217a8dc4790b0ff739cee424b9 Mon Sep 17 00:00:00 2001 From: Tim Otten Date: Wed, 13 Aug 2014 22:43:41 -0700 Subject: [PATCH] phpunit-indiv - Fix ref to phpunit-ls --- tools/scripts/phpunit-indiv | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/tools/scripts/phpunit-indiv b/tools/scripts/phpunit-indiv index 459ec6608d..cdec728ac6 100755 --- a/tools/scripts/phpunit-indiv +++ b/tools/scripts/phpunit-indiv @@ -1,4 +1,11 @@ #!/bin/bash +function absdirname() { + pushd $(dirname $0) >> /dev/null + pwd + popd >> /dev/null +} + +BINDIR=$(absdirname "$0") PHP=${PHP:-php} PHPUNIT=${PHPUNIT:-phpunit} MODE=standalone @@ -42,7 +49,7 @@ fi #phpunit-ls "$TESTSUITE" -phpunit-ls "$TESTSUITE" | while read FILE CLASS METHOD ; do +$BINDIR/phpunit-ls "$TESTSUITE" | while read FILE CLASS METHOD ; do PHPUNITARGS="--tap" if [ -n "$JSONDIR" ]; then PHPUNITARGS="$PHPUNITARGS --log-json $JSONDIR/$CLASS-$METHOD.json" -- 2.25.1