From 2cefbd1dfddec4e8bd2ccd24869f7a14eb0151e1 Mon Sep 17 00:00:00 2001 From: Yihau Chen Date: Tue, 28 Mar 2023 20:02:49 +0800 Subject: [PATCH] chore: add bare type to testnet-automation.sh (#30933) feat: add bare option to testnet-automation.sh --- system-test/testnet-automation.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/system-test/testnet-automation.sh b/system-test/testnet-automation.sh index a326fb06db..9f4cbc1929 100755 --- a/system-test/testnet-automation.sh +++ b/system-test/testnet-automation.sh @@ -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" ;;