chore: add bare type to testnet-automation.sh (#30933)

feat: add bare option to testnet-automation.sh
This commit is contained in:
Yihau Chen 2023-03-28 20:02:49 +08:00 committed by GitHub
parent 742c56ae28
commit 2cefbd1dfd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 2 deletions

View File

@ -41,8 +41,9 @@ $*"
) || echo "Error from packet loss analysis"
execution_step "Deleting Testnet"
"${REPO_ROOT}"/net/"${CLOUD_PROVIDER}".sh delete -p "${TESTNET_TAG}"
if test -f "${REPO_ROOT}"/net/"${CLOUD_PROVIDER}".sh; then
"${REPO_ROOT}"/net/"${CLOUD_PROVIDER}".sh delete -p "${TESTNET_TAG}"
fi
}
trap 'cleanup_testnet $BASH_COMMAND' EXIT
@ -98,6 +99,8 @@ function launch_testnet() {
-p "$TESTNET_TAG" $maybePublicIpAddresses --dedicated \
${ADDITIONAL_FLAGS[@]/#/" "}
;;
bare)
;;
*)
echo "Error: Unsupported cloud provider: $CLOUD_PROVIDER"
;;