Skip to content

Commit

Permalink
test: 'FAIL' on release binary download failure
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
gyuho committed Jun 19, 2017
1 parent 45fbac5 commit 8f8f550
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 8f8f550

Please sign in to comment.