fix: swap LAVA YAML template generation for broken jobs
This change introduces two new hooks:
- `generate_lava_job_template` is expected to generate the initial LAVA
job YAML file (`job.yaml`), which may include fields which are not
yet known
- `generate_lava_job` is used to fill in anything in the LAVA job that
was not known when the job YAML file was generated
Previously, these were incorporated into other hooks almost
arbitrarily, and in some jobs this meant that they were invoked in the
wrong order. These new hooks allow us to be explicit about the order
that these operations occur.
Change-Id: I07f96b91a7ddb04b599ccca674797d4714296c21
Signed-off-by: Chris Kay <chris.kay@arm.com>
diff --git a/run_config/fvp-aemv8a.rng_trap.bl31_panic b/run_config/fvp-aemv8a.rng_trap.bl31_panic
index b6dcad2..4b2f29c 100644
--- a/run_config/fvp-aemv8a.rng_trap.bl31_panic
+++ b/run_config/fvp-aemv8a.rng_trap.bl31_panic
@@ -5,22 +5,17 @@
# SPDX-License-Identifier: BSD-3-Clause
#
-post_tf_archive() {
- local model="base-aemv8a"
+generate_lava_job() {
+ local model="base-aemv8a"
- model="$model" \
+ uart="0" timeout="60" file="timeout.exp" track_expect
+ uart="1" timeout="60" file="crash_rng_trap_unhandled_exception_at_el3.exp" track_expect
+
# Due to a bug in the model, the FEAT_RNG_TRAP feature is not available
# in models that implement versions lower than 8.8, even though this is
# a v8.5 feature. Therefore, version 8.8 will be used while the FVP
# team fixes this problem. Once ready, the parameter arch_version will
# be changed to 8.5.
- arch_version="8.8" \
- has_rng_trap="1" \
- gen_model_params
+ model="$model" arch_version="8.8" has_rng_trap="1" gen_model_params
model="$model" gen_fvp_yaml
}
-
-fetch_tf_resource() {
- uart="0" timeout="60" file="timeout.exp" track_expect
- uart="1" timeout="60" file="crash_rng_trap_unhandled_exception_at_el3.exp" track_expect
-}