feat(tfut): add support for unit testing run config

With the addition of unit testing, it is now necessary to support a run
config in addition to the traditional testing on platforms. This patch
adds a new run component to the run config, so unit test runs can be
configured.

Signed-off-by: Juan Pablo Conde <juanpablo.conde@arm.com>
Signed-off-by: Edward Potapov <edward.potapov@arm.com>
Change-Id: I0b3866f69893b53f5c3f64b2b447385d9a541388
diff --git a/script/build_package.sh b/script/build_package.sh
index d0f96e4..eaa29a1 100755
--- a/script/build_package.sh
+++ b/script/build_package.sh
@@ -1099,6 +1099,10 @@
 tf_patch_record="$workspace/tf_patches"
 tftf_patch_record="$workspace/tftf_patches"
 
+# Split run config into TF and TFUT components
+run_config_tfa="$(echo "$run_config" | awk -F, '{print $1}')"
+run_config_tfut="$(echo "$run_config" | awk -F, '{print $2}')"
+
 pushd "$workspace"
 
 if ! config_valid "$tf_config"; then
@@ -1149,8 +1153,8 @@
 	echo
 fi
 
-if ! config_valid "$run_config"; then
-	run_config=
+if ! config_valid "$run_config_tfa"; then
+	run_config_tfa=
 fi
 
 if { [ "$tf_config" ] || [ "$tfut_config" ]; } && assert_can_git_clone "tf_root"; then
@@ -1232,10 +1236,10 @@
 	show_head "$tfut_root"
 fi
 
-if [ "$run_config" ]; then
-	# Get candidates for run config
+if [ "$run_config_tfa" ]; then
+	# Get candidates for TF-A run config
 	run_config_candidates="$("$ci_root/script/gen_run_config_candidates.py" \
-		"$run_config")"
+		"$run_config_tfa")"
 	if [ -z "$run_config_candidates" ]; then
 		die "No run config candidates!"
 	else