Fix: populate test environment variables before first use in run fragment.
Signed-off-by: Sona Mathew <SonaRebecca.Mathew@arm.com>
Change-Id: I1f9c96fb34bd863d5d37d57da7c1eef21216b673
diff --git a/run_config/fvp-aemv8a.aarch32.NVM_reboot b/run_config/fvp-aemv8a.aarch32.NVM_reboot
index 3303bc6..5b994ce 100644
--- a/run_config/fvp-aemv8a.aarch32.NVM_reboot
+++ b/run_config/fvp-aemv8a.aarch32.NVM_reboot
@@ -11,11 +11,20 @@
rm -f "$archive/flash1"
touch "$archive/flash0"
touch "$archive/flash1"
+
+ set_run_env "run_tftf_reboot_tests" "1"
+ # Contents of Non Volatile Memory are written to this file
+ set_run_env "NVM_file" "flash0"
}
generate_lava_job() {
local model="base-aemv8a"
+ uart0_log=$(echo uart-0-$(date "+%H:%M:%S").log)
+ uart1_log=$(echo uart-1-$(date "+%H:%M:%S").log)
+ set_run_env "uart0_file" "$uart0_log"
+ set_run_env "uart1_file" "$uart1_log"
+
model="$model" \
aarch32="1" \
cluster_0_num_cores="1" \
@@ -29,13 +38,4 @@
gen_model_params
model="$model" gen_fvp_yaml
-
- uart0_log=$(echo uart-0-$(date "+%H:%M:%S").log)
- uart1_log=$(echo uart-1-$(date "+%H:%M:%S").log)
- set_run_env "uart0_file" "$uart0_log"
- set_run_env "uart1_file" "$uart1_log"
-
- set_run_env "run_tftf_reboot_tests" "1"
- # Contents of Non Volatile Memory are written to this file
- set_run_env "NVM_file" "flash0"
}