code-coverage: add repos to increase coverage
- At merge if repos are missing can generate error§
- At individual job, increase coverage including other repos
Signed-off-by: Saul Romero <saul.romero@arm.com>
Change-Id: I12cf96f1a5e7422c35975b7cae1d4e1b606cef8a
diff --git a/tf-a-builder/builders.sh b/tf-a-builder/builders.sh
index ff5713f..3e740d9 100755
--- a/tf-a-builder/builders.sh
+++ b/tf-a-builder/builders.sh
@@ -158,7 +158,13 @@
export RUN_CONFIG="$run_config"
export TEST_CONFIG="$test_config"
export TEST_GROUP="$test_group"
-export COVERAGE_ON=$(echo "$RUN_CONFIG" | grep -qE 'bmcov' && echo 1 || echo 0)
+# Conditions for code coverage is that the run config has 'bmcov' is its name
+# or the test group parameter has 'code-coverage' contained in its name.
+export COVERAGE_ON=$((echo "$RUN_CONFIG" | grep -v 'aarch32' |
+ grep -qE 'bmcov' && echo 1) ||
+ (echo "${TEST_GROUP}" | grep -v 'aarch32' |
+ grep -qE 'code-coverage' && echo 1) ||
+ echo 0)
# Run this script bash -x, and it gets passed downstream for debugging
if echo "$-" | grep -q "x"; then