Skip to content

Commit

Permalink
Ignore errors from subshell correctly (solana-labs#13752)
Browse files Browse the repository at this point in the history
  • Loading branch information
sakridge authored Nov 22, 2020
1 parent 1d008ba commit a13083a
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions system-test/testnet-automation.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
Expand Down

0 comments on commit a13083a

Please sign in to comment.