From 98b1b7072c4fd0592215730183c24631fd9535c3 Mon Sep 17 00:00:00 2001 From: Hugo Sales Date: Mon, 8 Nov 2021 21:49:12 +0000 Subject: [PATCH] [TOOLS] Fix running tests without filters --- Makefile | 2 +- docker/tooling/coverage.sh | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index bf6fb9562a..ab80638436 100644 --- a/Makefile +++ b/Makefile @@ -38,7 +38,7 @@ tooling-docker: .PHONY @cd docker/tooling && docker-compose up -d > /dev/null 2>&1 test: tooling-docker - docker exec $(call translate-container-name,tooling_php_1) /var/tooling/coverage.sh $(call args,'.*') + docker exec $(call translate-container-name,tooling_php_1) /var/tooling/coverage.sh $(call args,'') doc-check: bin/php-doc-check src components plugins diff --git a/docker/tooling/coverage.sh b/docker/tooling/coverage.sh index aa76c02737..94ec3c579e 100755 --- a/docker/tooling/coverage.sh +++ b/docker/tooling/coverage.sh @@ -5,9 +5,7 @@ cd /var/www/social || exit 1 printf "Cleaning Redis cache: " && echo "FLUSHALL" | nc redis 6379 yes yes | php bin/console doctrine:fixtures:load || exit 1 -echo yooo - -if [ "$#" -eq 0 ]; then +if [ "$#" -eq 0 ] || [ -z "$*" ]; then runuser -u www-data -- vendor/bin/simple-phpunit -vvv --coverage-html .test_coverage_report else echo "Running with filter"