From: Tim Otten Date: Thu, 31 Mar 2016 21:51:06 +0000 (-0700) Subject: scripts/phpunit-{ls,indiv} - Fixes for standalone PHPUnit X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=fef71e552beadce1be3c503fb5678614ea613dba;p=civicrm-core.git scripts/phpunit-{ls,indiv} - Fixes for standalone PHPUnit --- 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