Commit 20e7e865 authored by Oliver Bartsch's avatar Oliver Bartsch
Browse files

[BUGFIX] Check whether realpath exists in runTests.sh

#94612 introduced the realpath command for retrieving
the "CORE_ROOT" path. This however leads to execution
failures on MacOS systems, which did not manually install
this command (as it's not installed by default).

To prevent the script from failing on default MacOS systems,
a check for the existence of the realpath command is added.
If not installed, the previous behaviour is used while displaying
a short information.

Resolves: #94635
Related: #94612
Releases: master, 10.4, 9.5
Change-Id: I30792f1e5492b57adf7ff28a7fa2c415ac2e094c
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/70068

Tested-by: core-ci's avatarcore-ci <typo3@b13.com>
Tested-by: Jochen's avatarJochen <rothjochen@gmail.com>
Tested-by: Benni Mack's avatarBenni Mack <benni@typo3.org>
Tested-by: Oliver Bartsch's avatarOliver Bartsch <bo@cedev.de>
Reviewed-by: Jochen's avatarJochen <rothjochen@gmail.com>
Reviewed-by: Benni Mack's avatarBenni Mack <benni@typo3.org>
Reviewed-by: Oliver Bartsch's avatarOliver Bartsch <bo@cedev.de>
parent 954f0fa9
......@@ -271,8 +271,15 @@ cd "$THIS_SCRIPT_DIR" || exit 1
# Go to directory that contains the local docker-compose.yml file
cd ../testing-docker/local || exit 1
# Set core root path by checking whether realpath exists
if ! command -v realpath &> /dev/null; then
echo "Consider installing realpath for properly resolving symlinks" >&2
CORE_ROOT="${PWD}/../../../"
else
CORE_ROOT=`realpath ${PWD}/../../../`
fi
# Option defaults
CORE_ROOT=`realpath ${PWD}/../../../`
TEST_SUITE="unit"
DBMS="mariadb"
PHP_VERSION="7.4"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment