From a4f0227669a2e833efdb885833930122bef6d6a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20P=C3=A9gouri=C3=A9-Gonnard?= Date: Thu, 24 Oct 2024 10:05:36 +0200 Subject: [PATCH] all.sh: prevent a silly mistake MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Manuel Pégourié-Gonnard --- tf-psa-crypto/tests/scripts/all.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tf-psa-crypto/tests/scripts/all.sh b/tf-psa-crypto/tests/scripts/all.sh index 301595830e..e26abd8113 100755 --- a/tf-psa-crypto/tests/scripts/all.sh +++ b/tf-psa-crypto/tests/scripts/all.sh @@ -10,6 +10,13 @@ # This script must be invoked from the project's root. +# Prevent silly mistakes when people would invoke this from mbedtls +if [ -d tf-psa-crypto -a -d library ]; then + echo "When invoking this script from an mbedtls checkout," >&2 + echo "you must change the working directory to tf-psa-crypto." >&2 + exit 255 +fi + # The path is going to change when this is moved to the framework source ../tests/scripts/all-core.sh