Ignore errors from subshell correctly (#13752)

This commit is contained in:
sakridge 2020-11-22 07:27:26 -08:00 committed by GitHub
parent 1d008bab4a
commit a13083aa65
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 6 deletions

View File

@ -23,21 +23,18 @@ $(eval echo "$@")"
fi
(
set +e
execution_step "Collecting Logfiles from Nodes"
collect_logs
)
) || echo "Error from collecting logs"
(
set +e
execution_step "Stop Network Software"
"${REPO_ROOT}"/net/net.sh stop
)
) || echo "Error from stopping nodes"
(
set +e
analyze_packet_loss
)
) || echo "Error from packet loss analysis"
execution_step "Deleting Testnet"
"${REPO_ROOT}"/net/"${CLOUD_PROVIDER}".sh delete -p "${TESTNET_TAG}"