mirror of https://github.com/FriendsOfTYPO3/tea.git synced 2024-09-20 00:16:12 +02:00

[BUGFIX] Display dbms version for functional test execution (#1276)

The `Build/Scripts/runTests.sh` has been streamlined recently
towards the `docker-compose less` approach of the TYPO3 core.
That means, that the `runTest.sh` has been heavily modified,
and multiple changes in the core variant has been implemented.

One of these changes included streamlining the Database Version
handling for the different vendors and combining multiple options
into the `-i` option and using a generic version variable instead
of vendor specific ones. Sadly, it has been missed to align the
version output on the end to the generic variable name.

This change modifies the dbms version output at the end of the
functional test execution to use the correct generic version
variable and thus fixing the missing version information in the
output. The switch has been simplified in the same step.

Resolves: #1272
This commit is contained in:
Stefan Bürk 2024-05-07 11:46:46 +02:00 committed by GitHub
parent 3ba56187bc
commit 1a0a288a8b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -646,14 +646,8 @@ echo "TYPO3: ${CORE_VERSION}" >&2
echo "CONTAINER_BIN: ${CONTAINER_BIN}" echo "CONTAINER_BIN: ${CONTAINER_BIN}"
if [[ ${TEST_SUITE} =~ ^functional$ ]]; then if [[ ${TEST_SUITE} =~ ^functional$ ]]; then
case "${DBMS}" in case "${DBMS}" in
mariadb) mariadb|mysql|postgres)
echo "DBMS: ${DBMS} version ${MARIADB_VERSION} driver ${DATABASE_DRIVER}" >&2 echo "DBMS: ${DBMS} version ${DBMS_VERSION} driver ${DATABASE_DRIVER}" >&2
;;
mysql)
echo "DBMS: ${DBMS} version ${MYSQL_VERSION} driver ${DATABASE_DRIVER}" >&2
;;
postgres)
echo "DBMS: ${DBMS} version ${POSTGRES_VERSION}" >&2
;; ;;
sqlite) sqlite)
echo "DBMS: ${DBMS}" >&2 echo "DBMS: ${DBMS}" >&2