From 43c0103e4c8940f392b3061310faf12bd4cc6264 Mon Sep 17 00:00:00 2001 From: Dan Albert Date: Fri, 25 Oct 2019 08:10:25 -0600 Subject: [PATCH] Enforce machine type definition on GCE (#6555) --- system-test/testnet-performance/testnet-automation.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/system-test/testnet-performance/testnet-automation.sh b/system-test/testnet-performance/testnet-automation.sh index 6ef5cf131..cf5371385 100755 --- a/system-test/testnet-performance/testnet-automation.sh +++ b/system-test/testnet-performance/testnet-automation.sh @@ -73,12 +73,16 @@ function launchTestnet() { case $CLOUD_PROVIDER in gce) + if [[ -z $VALIDATOR_NODE_MACHINE_TYPE ]] ; then + echo VALIDATOR_NODE_MACHINE_TYPE not defined + exit 1 + fi # shellcheck disable=SC2068 # shellcheck disable=SC2086 net/gce.sh create \ -d pd-ssd \ -n "$NUMBER_OF_VALIDATOR_NODES" -c "$NUMBER_OF_CLIENT_NODES" \ - $maybeCustomMachineType $VALIDATOR_NODE_MACHINE_TYPE "$maybeEnableGpu" \ + $maybeCustomMachineType "$VALIDATOR_NODE_MACHINE_TYPE" $maybeEnableGpu \ -p "$TESTNET_TAG" ${TESTNET_CLOUD_ZONES[@]/#/"-z "} ${ADDITIONAL_FLAGS[@]/#/" "} ;; colo)