mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-21 10:51:29 +00:00
hack/verify-all.sh: return error on error
This commit is contained in:
parent
1ef9e05341
commit
2e814b3b79
@ -53,6 +53,7 @@ fi
|
|||||||
|
|
||||||
EXCLUDE="verify-godeps.sh"
|
EXCLUDE="verify-godeps.sh"
|
||||||
|
|
||||||
|
ret=0
|
||||||
for t in `ls $KUBE_ROOT/hack/verify-*.sh`
|
for t in `ls $KUBE_ROOT/hack/verify-*.sh`
|
||||||
do
|
do
|
||||||
if is-excluded $t ; then
|
if is-excluded $t ; then
|
||||||
@ -61,9 +62,14 @@ do
|
|||||||
fi
|
fi
|
||||||
if $SILENT ; then
|
if $SILENT ; then
|
||||||
echo -e "Verifying $t"
|
echo -e "Verifying $t"
|
||||||
bash "$t" &> /dev/null && echo -e "${color_green}SUCCESS${color_norm}" || echo -e "${color_red}FAILED${color_norm}"
|
if bash "$t" &> /dev/null; then
|
||||||
|
echo -e "${color_green}SUCCESS${color_norm}"
|
||||||
|
else
|
||||||
|
echo -e "${color_red}FAILED${color_norm}"
|
||||||
|
ret=1
|
||||||
|
fi
|
||||||
else
|
else
|
||||||
bash "$t" || true
|
bash "$t" || ret=1
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
@ -75,10 +81,16 @@ do
|
|||||||
fi
|
fi
|
||||||
if $SILENT ; then
|
if $SILENT ; then
|
||||||
echo -e "Verifying $t"
|
echo -e "Verifying $t"
|
||||||
python "$t" &> /dev/null && echo -e "${color_green}SUCCESS${color_norm}" || echo -e "${color_red}FAILED${color_norm}"
|
if python "$t" &> /dev/null; then
|
||||||
|
echo -e "${color_green}SUCCESS${color_norm}"
|
||||||
|
else
|
||||||
|
echo -e "${color_red}FAILED${color_norm}"
|
||||||
|
ret=1
|
||||||
|
fi
|
||||||
else
|
else
|
||||||
python "$t" || true
|
python "$t" || ret=1
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
exit $ret
|
||||||
|
|
||||||
# ex: ts=2 sw=2 et filetype=sh
|
# ex: ts=2 sw=2 et filetype=sh
|
||||||
|
Loading…
Reference in New Issue
Block a user