fix(ci):add covetrace.so plugin on local ci run
Fix for run_config fragments to prevent covetrace plugin
errors. When running on local ci, the covtrace plugin will be
downloaded from tfa/downloads and set as bmcov plugin path to
mitigate the past errors of the plugin not being present.
The covetrace plugin is downloaded as the warehouse does not
host the plugin.
Signed-off-by: Thaddeus Gonzalez-Serna <Thaddeus.Gonzalez-Serna@arm.com>
Change-Id: Ie776d24079d787cd2331f1ac4acb6181ed38ba24
diff --git a/utils.sh b/utils.sh
index 00f4797..b154773 100644
--- a/utils.sh
+++ b/utils.sh
@@ -187,6 +187,26 @@
fi
}
+# Generate link for code coverage plugin
+gen_cc_url(){
+ local filename="coverage_trace.so"
+
+ if upon "$jenkins_run"; then
+ echo "${coverage_trace_plugin}"
+ else
+
+ local url="https://downloads.trustedfirmware.org/coverage-plugin/qa-tools/coverage-tool/coverage-plugin/${filename}"
+ local local_path="$workspace/artefacts/${bin_mode:?}/${filename}"
+
+ mkdir -p "$(dirname "$local_path")"
+ url="$url" saveas="$local_path" fetch_file
+ coverage_trace_plugin=$local_path
+
+ echo $coverage_trace_plugin
+ fi
+
+}
+
get_boot_image() {
local image=${image:?}
local type=${type:?}