mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
Merge pull request #8133 from gyuho/release-test
test: 'FAIL' on release binary download failure
This commit is contained in:
commit
ac62c6c811
9
test
9
test
@ -185,6 +185,10 @@ function release_pass {
|
|||||||
# 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
|
||||||
fi
|
fi
|
||||||
|
if [[ -z ${UPGRADE_VER} ]]; then
|
||||||
|
UPGRADE_VER="v3.2.0"
|
||||||
|
echo "fallback to" ${UPGRADE_VER}
|
||||||
|
fi
|
||||||
|
|
||||||
local file="etcd-$UPGRADE_VER-linux-$GOARCH.tar.gz"
|
local file="etcd-$UPGRADE_VER-linux-$GOARCH.tar.gz"
|
||||||
echo "Downloading $file"
|
echo "Downloading $file"
|
||||||
@ -195,9 +199,8 @@ function release_pass {
|
|||||||
set -e
|
set -e
|
||||||
case $result in
|
case $result in
|
||||||
0) ;;
|
0) ;;
|
||||||
22) return 0
|
*) echo "FAIL with" ${result}
|
||||||
;;
|
exit $result
|
||||||
*) exit $result
|
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user