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

[BUGFIX] Check whether realpath exists in

#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

Tested-by: core-ci's avatarcore-ci <>
Tested-by: Jochen's avatarJochen <>
Tested-by: Benni Mack's avatarBenni Mack <>
Tested-by: Oliver Bartsch's avatarOliver Bartsch <>
Reviewed-by: Jochen's avatarJochen <>
Reviewed-by: Benni Mack's avatarBenni Mack <>
Reviewed-by: Oliver Bartsch's avatarOliver Bartsch <>
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=`realpath ${PWD}/../../../`
# Option defaults
CORE_ROOT=`realpath ${PWD}/../../../`
Supports Markdown
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