From fef71e552beadce1be3c503fb5678614ea613dba Mon Sep 17 00:00:00 2001 From: Tim Otten Date: Thu, 31 Mar 2016 14:51:06 -0700 Subject: [PATCH] scripts/phpunit-{ls,indiv} - Fixes for standalone PHPUnit --- tools/scripts/phpunit-indiv | 2 ++ tools/scripts/phpunit-ls | 12 ++++++++++++ 2 files changed, 14 insertions(+) diff --git a/tools/scripts/phpunit-indiv b/tools/scripts/phpunit-indiv index c681c56be4..8dc447c533 100755 --- a/tools/scripts/phpunit-indiv +++ b/tools/scripts/phpunit-indiv @@ -54,6 +54,8 @@ fi #phpunit-ls "$TESTSUITE" $BINDIR/phpunit-ls "$TESTSUITE" | while read FILE CLASS METHOD ; do + if [ -z "$FILE" -o ! -f "$FILE" ]; then continue; fi + echo "[[Processing $FILE $CLASS::$METHOD]]" ## Optionally reset DBs if [ -n "$CIVIBUILD_RESTORE" ]; then civibuild restore "$CIVIBUILD_RESTORE" diff --git a/tools/scripts/phpunit-ls b/tools/scripts/phpunit-ls index 6d6ffc2076..cc617906a8 100755 --- a/tools/scripts/phpunit-ls +++ b/tools/scripts/phpunit-ls @@ -1,5 +1,17 @@ #!/usr/bin/env php