run_local_ci.sh: fix scp and spm grep matches

String matches, scp and spm, must be at the beginning of the test
group otherwise test groups like tf-l3-boot-tests-spm-mm would match
and config reshuffle would happend, leading to unmatched test
descriptions.

Signed-off-by: Leonardo Sandoval <leonardo.sandoval@linaro.org>
Change-Id: I5e4bdca6ff9fb8c8a225788f21a68855bb5e75cb
diff --git a/script/run_local_ci.sh b/script/run_local_ci.sh
index 248d338..99e83a9 100755
--- a/script/run_local_ci.sh
+++ b/script/run_local_ci.sh
@@ -254,9 +254,9 @@
     run_config="${run_config:-nil}"
 
     # construct the 'long form' so it takes into account all possible configurations
-    if echo ${test_group} | grep -q 'scp-'; then
+    if echo ${test_group} | grep -q '^scp-'; then
 	tg=$(printf "%s/%s,%s,%s,%s:%s" "${test_group}" "${scp_config}" "${tf_config}" "${tftf_config}" "${scp_tools}" "${run_config}")
-    elif echo ${test_group} | grep -q 'spm-'; then
+    elif echo ${test_group} | grep -q '^spm-'; then
 	tg=$(printf "%s/%s,%s,%s,%s,%s:%s" "${test_group}" "${spm_config}" "${tf_config}" "${tftf_config}" "${scp_config}" "${scp_tools}" "${run_config}")
     else
 	tg=$(printf "%s/%s,%s,%s,%s,%s:%s" "${test_group}" "${tf_config}" "${tftf_config}" "${scp_config}" "${scp_tools}" "${spm_config}" "${run_config}")