mirror of https://github.com/FriendsOfTYPO3/tea.git synced 2024-11-21 20:16:12 +01:00

[BUGFIX] Display static driver info for sqlite and postgres (#1281)

In the PHP world there are only one driver for SQLite and
Postgres available. `runTests.sh` disallows to specify a
driver for SQLite or Postgres and therefore setting the
variable would make that check more complex.

This change modifies the driver information for SQLite and
Postgres to use hardcoded driver output to keep the cross
check for specifing a driver for these database vendors.

Resolves: #1278
This commit is contained in:
Stefan Bürk 2024-05-07 12:31:15 +02:00 committed by GitHub
parent 6828977b74
commit 823d4c406d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -630,11 +630,14 @@ echo "TYPO3: ${CORE_VERSION}" >&2
echo "CONTAINER_BIN: ${CONTAINER_BIN}"
if [[ ${TEST_SUITE} =~ ^functional$ ]]; then
case "${DBMS}" in
mariadb|mysql|postgres)
mariadb|mysql)
echo "DBMS: ${DBMS} version ${DBMS_VERSION} driver ${DATABASE_DRIVER}" >&2
;;
postgres)
echo "DBMS: ${DBMS} version ${DBMS_VERSION} driver pdo_pgsql" >&2
;;
sqlite)
echo "DBMS: ${DBMS}" >&2
echo "DBMS: ${DBMS} driver pdo_sqlite" >&2
;;
esac
fi