diff --git a/tests/test.bats b/tests/test.bats index f2cd5ea0..dc5b03a2 100755 --- a/tests/test.bats +++ b/tests/test.bats @@ -135,8 +135,8 @@ _healthcheck_wait () unset output # Check PHP modules - run bash -lc "docker exec -u docker '${NAME}' php -m | diff <(./tests/php-modules.sh) -" - [[ ${status} == 0 ]] + output=$(docker exec -u docker "$NAME" php -m | diff <(./tests/php-modules.sh) -) + [[ ${output} == "" ]] unset output ### Cleanup ###