mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
test: 'FAIL' on release binary download failure
I see CI is failing to download release binaries but exit code doesn't trigger CI job failure. We need 'FAIL' string. Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
This commit is contained in:
parent
3365dd4ff0
commit
939aa66b48
9
test
9
test
@ -175,6 +175,10 @@ function release_pass {
|
||||
# in case, we need to test against different version
|
||||
UPGRADE_VER=$MANUAL_VER
|
||||
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"
|
||||
echo "Downloading $file"
|
||||
@ -185,9 +189,8 @@ function release_pass {
|
||||
set -e
|
||||
case $result in
|
||||
0) ;;
|
||||
22) return 0
|
||||
;;
|
||||
*) exit $result
|
||||
*) echo "FAIL with" ${result}
|
||||
exit $result
|
||||
;;
|
||||
esac
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user