Skip to content

Commit

Permalink
use the latest point release in upgrade tests (#8492) (#9089)
Browse files Browse the repository at this point in the history
Co-authored-by: Dave Protasowski <[email protected]>
  • Loading branch information
mattmoor and dprotaso committed Aug 17, 2020
1 parent 8c65d71 commit bcda051
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion test/e2e-upgrade-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,16 @@

source $(dirname $0)/e2e-common.sh

latest_version() {
local semver=$(git describe --match "v[0-9]*" --abbrev=0)
local major_minor=$(echo "$semver" | cut -d. -f1-2)

# Get the latest patch release for the major minor
git tag -l "${major_minor}*" | sort -r --version-sort | head -n1
}
# Latest serving release. If user does not supply this as a flag, the latest
# tagged release on the current branch will be used.
LATEST_SERVING_RELEASE_VERSION=$(git describe --match "v[0-9]*" --abbrev=0)
LATEST_SERVING_RELEASE_VERSION=$(latest_version)

function install_latest_release() {
header "Installing Knative latest public release"
Expand Down

0 comments on commit bcda051

Please sign in to comment.