From a23c6177d5b6a0f98a487d530610f4604368b197 Mon Sep 17 00:00:00 2001 From: Dan Albert Date: Mon, 11 Nov 2019 12:08:22 -0700 Subject: [PATCH] Use reusable provider-specific testnet keypairs (#6866) * Use reusable provider-specific testnet keypairs * shellcheck --- system-test/testnet-performance/testnet-automation.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/system-test/testnet-performance/testnet-automation.sh b/system-test/testnet-performance/testnet-automation.sh index dee8116dda..59c3fba37c 100755 --- a/system-test/testnet-performance/testnet-automation.sh +++ b/system-test/testnet-performance/testnet-automation.sh @@ -133,6 +133,15 @@ function launchTestnet() { echo --- configure database net/init-metrics.sh -e + echo --- fetch reusable testnet keypairs + if [[ ! -d net/keypairs ]] ; then + git clone git@github.com:solana-labs/testnet-keypairs.git net/keypairs + # If we have provider-specific keys (CoLo*, GCE*, etc) use them instead of generic val* + if [[ -d net/keypairs/"${CLOUD_PROVIDER}" ]] ; then + cp net/keypairs/"${CLOUD_PROVIDER}"/* net/keypairs/ + fi + fi + echo --- start "$NUMBER_OF_VALIDATOR_NODES" node test if [[ -n $CHANNEL ]]; then # shellcheck disable=SC2068