Download latest VPP packages for hourly jobs 06/25206/3
authorjuraj.linkes <juraj.linkes@pantheon.tech>
Mon, 17 Feb 2020 12:35:39 +0000 (13:35 +0100)
committerPeter Mikus <pmikus@cisco.com>
Tue, 18 Feb 2020 07:33:52 +0000 (07:33 +0000)
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 <juraj.linkes@pantheon.tech>
resources/libraries/bash/function/gather.sh

index b2c298b..e082940 100644 (file)
@@ -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