mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
test: grep versions with --sort
This commit is contained in:
parent
cf09562e40
commit
20211ed6bf
2
test
2
test
@ -90,7 +90,7 @@ function grpcproxy_pass {
|
|||||||
|
|
||||||
function release_pass {
|
function release_pass {
|
||||||
# to grab latest patch release; bump this up for every minor release
|
# 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
|
if [ -n "$MANUAL_VER" ]; then
|
||||||
# in case, we need to test against different version
|
# in case, we need to test against different version
|
||||||
UPGRADE_VER=$MANUAL_VER
|
UPGRADE_VER=$MANUAL_VER
|
||||||
|
Loading…
x
Reference in New Issue
Block a user