Merge pull request #3815 from RinkiyaKeDad/3796_e2e_fail_logs

feat: fix logs display for e2e test failures
This commit is contained in:
jetstack-bot 2021-04-01 09:36:39 +01:00 committed by GitHub
commit 5dd00bf2a5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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