fix(ci): don't traverse subdirectories while looking for .test files

Without specifying a max depth, the `find` command will recurse into the
build directories. Directories within them are constantly added and
removed so if we have a few parallel jobs at the same time, a directory
can disappear from under find causing it to fail.

Well the command is only looking for .test files and all of those are in
the top level of the workspace. So don't recurse to avoid the problem
and gain a little bit of efficiency.

Signed-off-by: Boyan Karatotev <boyan.karatotev@arm.com>
Change-Id: I5ea2c1c42a7a6ed545612fe2f4679f5239b31336
diff --git a/script/run_local_ci.sh b/script/run_local_ci.sh
index 714b86e..01b4c2f 100755
--- a/script/run_local_ci.sh
+++ b/script/run_local_ci.sh
@@ -78,7 +78,9 @@
 
 	id="${1%%_*}"
 	action="${1##*_}"
-	test_file="$(find -name "$id*.test" -printf "%f\n")"
+	# Subdirectories could change while traversing but all our files are in
+	# the top level directory.
+	test_file="$(find -maxdepth 1 -name "$id*.test" -printf "%f\n")"
 
 	mkdir -p "$id"