Merge pull request #3815 from RinkiyaKeDad/3796_e2e_fail_logs
feat: fix logs display for e2e test failures
This commit is contained in:
commit
5dd00bf2a5
@ -37,34 +37,21 @@ echo "Installing cert-manager into the cluster..."
|
||||
check_bazel
|
||||
bazel build --platforms=@io_bazel_rules_go//go/toolchain:linux_amd64 //devel/addon/...
|
||||
|
||||
EXIT=0
|
||||
|
||||
echo "Installing sample-webhook into the cluster..."
|
||||
"${SCRIPT_ROOT}/addon/samplewebhook/install.sh" &
|
||||
"${SCRIPT_ROOT}/addon/samplewebhook/install.sh"
|
||||
|
||||
echo "Installing bind into the cluster..."
|
||||
"${SCRIPT_ROOT}/addon/bind/install.sh" &
|
||||
"${SCRIPT_ROOT}/addon/bind/install.sh"
|
||||
|
||||
echo "Installing pebble into the cluster..."
|
||||
"${SCRIPT_ROOT}/addon/pebble/install.sh" &
|
||||
"${SCRIPT_ROOT}/addon/pebble/install.sh"
|
||||
|
||||
echo "Installing ingress-nginx into the cluster..."
|
||||
"${SCRIPT_ROOT}/addon/ingressnginx/install.sh" &
|
||||
"${SCRIPT_ROOT}/addon/ingressnginx/install.sh"
|
||||
|
||||
echo "Loading vault into the cluster..."
|
||||
"${SCRIPT_ROOT}/addon/vault/install.sh" &
|
||||
"${SCRIPT_ROOT}/addon/vault/install.sh"
|
||||
|
||||
echo "Installing sample-external-issuer into the cluster..."
|
||||
"${SCRIPT_ROOT}/addon/sample-external-issuer/install.sh" &
|
||||
"${SCRIPT_ROOT}/addon/sample-external-issuer/install.sh"
|
||||
|
||||
# Wait for all background jobs to finish and exit with non-zero if any of them fail
|
||||
# See https://stackoverflow.com/a/515170/919436
|
||||
for job in $(jobs -p); do
|
||||
wait $job || let "EXIT+=1"
|
||||
done
|
||||
|
||||
if [[ "$EXIT" > 0 ]]; then
|
||||
echo "ERROR: ${EXIT} setup jobs failed. Check logs above for details."
|
||||
fi
|
||||
|
||||
exit $EXIT
|
||||
|
||||
Loading…
Reference in New Issue
Block a user