From 18feba2431f4c2a793d642d5c8590a00f05287d6 Mon Sep 17 00:00:00 2001 From: Dan Albert Date: Mon, 21 Oct 2019 23:17:41 -0400 Subject: [PATCH] ADDITIONAL_FLAGS not handling multiple flags correctly (#6492) * Fix ADDITIONAL_FLAGS parsing to handle multiple flags * shellcheck --- system-test/testnet-performance/testnet-automation.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/system-test/testnet-performance/testnet-automation.sh b/system-test/testnet-performance/testnet-automation.sh index ef67a8bad..ec2c6d00a 100755 --- a/system-test/testnet-performance/testnet-automation.sh +++ b/system-test/testnet-performance/testnet-automation.sh @@ -88,12 +88,13 @@ launchTestnet() { -d pd-ssd \ -n "$NUMBER_OF_VALIDATOR_NODES" -c "$NUMBER_OF_CLIENT_NODES" \ "$maybeMachineType" "$VALIDATOR_NODE_MACHINE_TYPE" \ - -p "$TESTNET_TAG" ${TESTNET_CLOUD_ZONES[@]/#/"-z "} "$ADDITIONAL_FLAGS" + -p "$TESTNET_TAG" ${TESTNET_CLOUD_ZONES[@]/#/"-z "} ${ADDITIONAL_FLAGS[@]/#/" "} ;; colo) + # shellcheck disable=SC2068 net/colo.sh create \ -n "$NUMBER_OF_VALIDATOR_NODES" -c "$NUMBER_OF_CLIENT_NODES" -g \ - -p "$TESTNET_TAG" "$ADDITIONAL_FLAGS" + -p "$TESTNET_TAG" ${ADDITIONAL_FLAGS[@]/#/" "} ;; *) echo "Error: Unsupported cloud provider: $CLOUD_PROVIDER"