X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=resources%2Flibraries%2Fbash%2Ffunction%2Fgather.sh;fp=resources%2Flibraries%2Fbash%2Ffunction%2Fgather.sh;h=b169445bb216762ef94baf05df9631610f63751b;hb=b0330dead145c5c30a09be05b6a33c7d6dc0e72d;hp=28a84ca10f8a11b92eb1e4d4db8af9fe31de6f35;hpb=e0e76e6ac30312d84424023a76d612606e0040d4;p=csit.git diff --git a/resources/libraries/bash/function/gather.sh b/resources/libraries/bash/function/gather.sh index 28a84ca10f..b169445bb2 100644 --- a/resources/libraries/bash/function/gather.sh +++ b/resources/libraries/bash/function/gather.sh @@ -97,9 +97,12 @@ function gather_dpdk () { die "Composite piped command failed." } else - echo "Downloading DPDK packages of specific version from repo..." - # TODO: Can we autodetect this based on what CSIT-stable VPP uses? - dpdk_stable_ver="dpdk-19.02.tar.xz" + echo "Downloading DPDK package of specific version from repo ..." + # Downloading DPDK version based on what VPP is using. Currently + # it is not easy way to detect from VPP version automatically. + dpdk_stable_ver="$(< "${CSIT_DIR}/DPDK_VPP_VER")".tar.xz || { + die "Failed to read DPDK VPP version!" + } fi # TODO: Use "wget -N" instead checking for file presence? if [[ ! -f "${dpdk_stable_ver}" ]]; then