qa-code-coverage: update fallback files fetching command

This patch replaces `wget` for `fetch_file()` function which
allows to use to local and remote files.

Signed-off-by: Leandro Belli <leandro.belli@arm.com>
Change-Id: Iede7736ef52a0be5dbe1a6151f59853bebf6e810
diff --git a/script/qa-code-coverage.sh b/script/qa-code-coverage.sh
index 531e03b..0faab18 100644
--- a/script/qa-code-coverage.sh
+++ b/script/qa-code-coverage.sh
@@ -73,9 +73,15 @@
   pushd "${CODE_COVERAGE_FOLDER}"
   deploy_qa_tools
   local cc_source=$(find . -type f -name 'coverage_trace.cc')
-  local fallback="wget -q ${FALLBACK_PLUGIN_URL}/{$FALLBACK_FILES}"
   echo "Warehouse=${warehouse}"
-  eval "$fallback"
+
+  IFS=',' read -r -a files <<< "$FALLBACK_FILES"
+  for file in "${files[@]}"; do
+      url="${FALLBACK_PLUGIN_URL}/${file}" \
+        saveas="${CODE_COVERAGE_FOLDER}/${file}" \
+        fetch_file
+  done
+
   ls -al
   export coverage_trace_plugin="${CODE_COVERAGE_FOLDER}/${PLUGIN_BINARY}"
   popd