all.sh: robustness improvement

The original pattern would catch any extension, which could include
things like editor backup files etc, that we'd rather ignore.

Signed-off-by: Manuel Pégourié-Gonnard <manuel.pegourie-gonnard@arm.com>
diff --git a/tests/scripts/all.sh b/tests/scripts/all.sh
index da53686..c5a3aaf 100755
--- a/tests/scripts/all.sh
+++ b/tests/scripts/all.sh
@@ -1032,7 +1032,8 @@
     expected="check-test-deps-expected-$$"
 
     # Find legacy dependencies in PSA tests
-    grep 'depends_on' tests/suites/test_suite_psa* |
+    grep 'depends_on' \
+        tests/suites/test_suite_psa*.data tests/suites/test_suite_psa*.function |
         grep -Eo '!?MBEDTLS_[^: ]*' |
         grep -v MBEDTLS_PSA_ |
         sort -u > $found