diff options
author | juraj.linkes <juraj.linkes@pantheon.tech> | 2020-02-17 13:35:39 +0100 |
---|---|---|
committer | Peter Mikus <pmikus@cisco.com> | 2020-02-18 07:33:52 +0000 |
commit | c8bc6ec55a9331c420b4d269c4dbab91d6f1ca76 (patch) | |
tree | 8e46a5665b75b94ef999c4655d7853f91cab0d18 /resources/libraries/bash | |
parent | a8a9827ea12122026190f9c7a590a8af7f92d772 (diff) |
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 <juraj.linkes@pantheon.tech>
Diffstat (limited to 'resources/libraries/bash')
-rw-r--r-- | resources/libraries/bash/function/gather.sh | 7 |
1 files changed, 4 insertions, 3 deletions
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 |