From 17238405b261439cc227393e04651ecea0505ecb Mon Sep 17 00:00:00 2001 From: Roy Crihfield Date: Wed, 26 Jun 2024 16:59:59 +0800 Subject: [PATCH] dump logs on stack failure --- scripts/integration-setup.sh | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/scripts/integration-setup.sh b/scripts/integration-setup.sh index 97b602d..00f006f 100755 --- a/scripts/integration-setup.sh +++ b/scripts/integration-setup.sh @@ -27,6 +27,10 @@ if [[ -z $SKIP_BUILD ]]; then --exclude cerc/plugeth-statediff fi -$laconic_so deploy \ - --env-file $CONFIG_DIR/stack.env \ - --cluster test up +if ! $laconic_so deploy \ + --env-file $CONFIG_DIR/stack.env \ + --cluster test up +then + $laconic_so deploy --cluster test logs + exit 1 +fi