Skip to content

Commit

Permalink
Merge pull request #8133 from gyuho/release-test
Browse files Browse the repository at this point in the history
test: 'FAIL' on release binary download failure
  • Loading branch information
gyuho authored Jun 20, 2017
2 parents a65e3c6 + 8f8f550 commit ac62c6c
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions test
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,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"
Expand All @@ -195,9 +199,8 @@ function release_pass {
set -e
case $result in
0) ;;
22) return 0
;;
*) exit $result
*) echo "FAIL with" ${result}
exit $result
;;
esac

Expand Down

0 comments on commit ac62c6c

Please sign in to comment.