]> granicus.if.org Git - libexpat/commitdiff
coverage.sh: Re-use first xmlts.zip download
authorSebastian Pipping <sebastian@pipping.org>
Sun, 6 Oct 2019 19:48:51 +0000 (21:48 +0200)
committerSebastian Pipping <sebastian@pipping.org>
Mon, 7 Oct 2019 20:33:46 +0000 (22:33 +0200)
expat/coverage.sh

index 23edc37c85a14dc1f220f386b9a918f5c3ee776c..a77d60c7e4b177c422fd84a64080ba7037aad246 100755 (executable)
@@ -211,6 +211,11 @@ _main() {
         echo "[${build_dir}]"
         _copy_to "${build_dir}"
 
+        # Make sure we don't need to download xmlts.zip over and over again
+        if [[ ${#build_dirs[*]} -gt 0 ]]; then
+            ln -s "$PWD/${build_dirs[0]}/tests/xmlts.zip" "${build_dir}"/tests/
+        fi
+
         _run "${source_dir}" "${build_dir}"
 
         build_dirs+=( "${build_dir}" )