From 58cf7c6c38556d8780ae6bbf6f4baf5091634f30 Mon Sep 17 00:00:00 2001 From: David Horstmann Date: Tue, 29 Aug 2023 10:15:05 +0100 Subject: [PATCH] Use repo detection functions at start of all.sh Signed-off-by: David Horstmann --- tests/scripts/all.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/scripts/all.sh b/tests/scripts/all.sh index 36a20b309..b9ff1fb56 100755 --- a/tests/scripts/all.sh +++ b/tests/scripts/all.sh @@ -132,7 +132,7 @@ in_psa_crypto_repo () { } pre_check_environment () { - if [ \( -d library -o -d core \) -a -d include -a -d tests ]; then :; else + if in_mbedtls_repo || in_psa_crypto_repo; then :; else echo "Must be run from Mbed TLS root" >&2 exit 1 fi