Merge pull request #6514 from gyuho/sort

test: grep versions with --sort
This commit is contained in:
Xiang Li
2016-09-26 06:31:05 -05:00
committed by GitHub

2
test
View File

@@ -90,7 +90,7 @@ function grpcproxy_pass {
function release_pass {
# to grab latest patch release; bump this up for every minor release
UPGRADE_VER=$(git tag -l | grep v3.0 | tail -1)
UPGRADE_VER=$(git tag -l --sort=-version:refname "v3.0.*" | head -1)
if [ -n "$MANUAL_VER" ]; then
# in case, we need to test against different version
UPGRADE_VER=$MANUAL_VER