From ce97dcda2a203c681c869180128806822db78ed5 Mon Sep 17 00:00:00 2001 From: Leonid Makarov Date: Fri, 4 Oct 2024 15:36:50 +0200 Subject: [PATCH] Fix PHP module test on Mac See https://bats-core.readthedocs.io/en/stable/gotchas.html --- tests/test.bats | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 ###