From 8f8f5504438a7624522899f21e090da9d2d9d6fc Mon Sep 17 00:00:00 2001 From: Gyu-Ho Lee Date: Mon, 19 Jun 2017 08:30:42 -0700 Subject: [PATCH] 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 --- test | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/test b/test index fe124fcc92e..73389acc7df 100755 --- a/test +++ b/test @@ -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" @@ -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