Trap exporting logs in run e2e test _before_ cluster create

Signed-off-by: JoshVanL <vleeuwenjoshua@gmail.com>
This commit is contained in:
JoshVanL 2020-03-30 14:26:15 +01:00
parent fb3fe2488d
commit 2970902774
No known key found for this signature in database
GPG Key ID: E7A7196576A219DA

View File

@ -34,11 +34,11 @@ source "${SCRIPT_ROOT}/lib/lib.sh"
# Configure PATH to use bazel provided e2e tools
setup_tools
trap "export_logs" ERR
echo "Ensuring a kind cluster exists..."
"${SCRIPT_ROOT}/cluster/create.sh"
trap "export_logs" ERR
echo "Ensuring all e2e test dependencies are installed..."
"${SCRIPT_ROOT}/setup-e2e-deps.sh"