From: juraj.linkes Date: Mon, 17 Feb 2020 12:35:39 +0000 (+0100) Subject: Download latest VPP packages for hourly jobs X-Git-Url: https://gerrit.fd.io/r/gitweb?p=csit.git;a=commitdiff_plain;h=c8bc6ec55a9331c420b4d269c4dbab91d6f1ca76 Download latest VPP packages for hourly jobs 1n-tx2 vpp-device tests are supposed to give us a view of how VPP patches affect VPP device tests, so download the latest packages for them as well. Also replace round brackets with curly brackets in the condition to make it faster according to https://github.com/koalaman/shellcheck/wiki/SC2235. Change-Id: I9caafea3590d04af9cb34d6bb536ff786fe08411 Signed-off-by: juraj.linkes --- diff --git a/resources/libraries/bash/function/gather.sh b/resources/libraries/bash/function/gather.sh index b2c298b62f..e0829400b0 100644 --- a/resources/libraries/bash/function/gather.sh +++ b/resources/libraries/bash/function/gather.sh @@ -141,9 +141,10 @@ function gather_vpp () { "csit-"*) # Use downloaded packages with specific version. if [[ "${TEST_CODE}" == *"daily"* ]] || \ - ([[ "${TEST_CODE}" == *"weekly"* ]] && \ - [[ "${TEST_CODE}" != *"device"* ]]) || \ - [[ "${TEST_CODE}" == *"semiweekly"* ]]; + { [[ "${TEST_CODE}" == *"weekly"* ]] && \ + [[ "${TEST_CODE}" != *"device"* ]]; } || \ + [[ "${TEST_CODE}" == *"semiweekly"* ]] || \ + [[ "${TEST_CODE}" == *"hourly"* ]]; then warn "Downloading latest VPP packages from Packagecloud." else