Separate directory discernment into 2 functions
Have separate in_mbedtls_repo() and in_psa_crypto_repo() functions
Signed-off-by: David Horstmann <david.horstmann@arm.com>
diff --git a/tests/scripts/all.sh b/tests/scripts/all.sh
index 33bad39..36a20b3 100755
--- a/tests/scripts/all.sh
+++ b/tests/scripts/all.sh
@@ -124,7 +124,11 @@
shopt -s extglob
in_mbedtls_repo () {
- test ! -d core
+ test -d include -a -d library -a -d programs -a -d tests
+}
+
+in_psa_crypto_repo () {
+ test -d include -a -d core -a -d drivers -a -d programs -a -d tests
}
pre_check_environment () {