e2e: print logs after tests finished

This commit is contained in:
stefanprodan
2019-08-13 11:53:28 +03:00
parent 5d14183809
commit c759f958c0

View File

@@ -5,8 +5,12 @@ set -o errexit
REPO_ROOT=$(git rev-parse --show-toplevel)
export KUBECONFIG="$(kind get kubeconfig-path --name="kind")"
function finish {
echo '>>> Test logs'
kubectl logs -l app=podinfo
}
trap finish EXIT
echo '>>> Testing'
helm test podinfo
echo '>>> Test logs'
kubectl logs -l app=podinfo