From bb9f07183b804146832a58830232b2b4609d33af Mon Sep 17 00:00:00 2001 From: Michael Vines Date: Fri, 20 Sep 2019 14:47:00 -0700 Subject: [PATCH] Only fetch logs on sanity failure --- ci/testnet-sanity.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ci/testnet-sanity.sh b/ci/testnet-sanity.sh index 5a9086483..e7e6c971a 100755 --- a/ci/testnet-sanity.sh +++ b/ci/testnet-sanity.sh @@ -72,6 +72,8 @@ for zone in "$@"; do ${NO_INSTALL_CHECK:+-o noInstallCheck} \ $zone || ok=false - net/net.sh logs + if ! $ok; then + net/net.sh logs + fi $ok done