forked from pingcap/br
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tests/br/compatibility: fix failed for manifest unknown (pingcap#1161) (
- Loading branch information
1 parent
55fb11a
commit 5fcf445
Showing
3 changed files
with
23 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# update tags | ||
git fetch --tags | ||
|
||
getLatestTags() { | ||
release_5_branch_regex="^release-5\.[0-9].*$" | ||
release_4_branch_regex="^release-4\.[0-9].*$" | ||
TOTAL_TAGS=$(git for-each-ref --sort=creatordate refs/tags | awk -F '/' '{print $3}') | ||
filter='alpha' | ||
# latest tags | ||
TAGS=$(echo $TOTAL_TAGS | tr ' ' '\n' | grep -v $filter | tail -n3) | ||
if git rev-parse --abbrev-ref HEAD | egrep -q $release_5_branch_regex | ||
then | ||
# If we are in release-5.0 branch, try to use latest 3 version of 5.x and last 4.x version | ||
TAGS=$(echo $TOTAL_TAGS | tr ' ' '\n' | fgrep "v4." | grep -v $filter | tail -n1 && echo $TOTAL_TAGS | tr ' ' '\n' | fgrep "v5." | grep -v $filter | tail -n3) | ||
elif git rev-parse --abbrev-ref HEAD | egrep -q $release_4_branch_regex | ||
then | ||
# If we are in release-4.0 branch, try to use latest 3 version of 4.x | ||
TAGS=$(echo $TOTAL_TAGS | tr ' ' '\n' | fgrep "v4." | grep -v $filter | tail -n3) | ||
fi | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters