fix(fvp params): include 'shutdown' parameter in TFTF runs
Introducing the shutdown parameter 'bp.pl011_uart0.shutdown_on_eot=1'
in TFTF runs, allows post-simulation commands to be executed, i.e
exporting trace code coverage logs outside the model container, before
LAVA terminates the simulation.
Signed-off-by: Leonardo Sandoval <leonardo.sandoval@linaro.org>
Change-Id: Ie0f3587c29d4c556b9d0b494c9e89cf3c7614fc0
diff --git a/model/fvp_common.sh b/model/fvp_common.sh
index e22c8c7..665a33a 100644
--- a/model/fvp_common.sh
+++ b/model/fvp_common.sh
@@ -102,10 +102,15 @@
EOF
fi
-# TFTF: When running in non-Jenkins environment,
-# shutdown simulation when EOT (ASCII 4) char is transmitted.
-if not_upon "$jenkins_run" && echo "$RUN_CONFIG" | grep -iq 'tftf'; then
+# TFTF: There are two scenarions where simulation should be shutdown
+# when a EOT (ASCII 4) char is transmitted: on local or Open CI runs.
+# For the latter case, shutdown is required so further commands parse
+# or transfer any produced files during execution, i.e. trace code
+# coverage logs
+if echo "$RUN_CONFIG" | grep -iq 'tftf'; then
+ if ! is_arm_jenkins_env || upon "$local_ci"; then
cat <<EOF >>"$model_param_file"
-C bp.pl011_uart0.shutdown_on_eot=1
EOF
+ fi
fi