[TESTS] Run tests without runuser as it's generating very weird permission errors. This is temporary (TM)

This commit is contained in:
Hugo Sales 2021-11-10 13:55:42 +00:00
parent d0f9fde7c2
commit 420ebcda26
Signed by: someonewithpc
GPG Key ID: 7D0C7EAFC9D835A0

View File

@ -6,8 +6,8 @@ printf "Cleaning Redis cache: " && echo "FLUSHALL" | nc redis 6379
yes yes | php bin/console doctrine:fixtures:load || exit 1 yes yes | php bin/console doctrine:fixtures:load || exit 1
if [ "$#" -eq 0 ] || [ -z "$*" ]; then if [ "$#" -eq 0 ] || [ -z "$*" ]; then
runuser -u www-data -- vendor/bin/simple-phpunit -vvv --coverage-html .test_coverage_report vendor/bin/simple-phpunit -vvv --coverage-html .test_coverage_report
else else
echo "Running with filter" echo "Running with filter"
runuser -u www-data -- vendor/bin/simple-phpunit -vvv --coverage-html .test_coverage_report --filter "$*" vendor/bin/simple-phpunit -vvv --coverage-html .test_coverage_report --filter "$*"
fi fi