Preserve public network flag when testnet-edge is restarted

This commit is contained in:
Michael Vines 2019-09-19 23:02:47 -07:00
parent 8bbc8343ff
commit 54cf9aaa1e
No known key found for this signature in database
GPG Key ID: 33F4FDEC4E0E88BD
2 changed files with 8 additions and 2 deletions

View File

@ -218,7 +218,7 @@ sanity() {
set -x
NO_INSTALL_CHECK=1 \
NO_VALIDATOR_SANITY=1 \
ci/testnet-sanity.sh edge-testnet-solana-com gce us-west1-b
ci/testnet-sanity.sh edge-testnet-solana-com gce -P us-west1-b
)
(
echo "--- net.sh restart"

View File

@ -30,6 +30,12 @@ cloudProvider=$2
[[ -n $netName ]] || usage ""
[[ -n $cloudProvider ]] || usage "Cloud provider not specified"
shift 2
maybePublicNetwork=
if [[ $1 = -P ]]; then
maybePublicNetwork=-P
shift
fi
[[ -n $1 ]] || usage "zone1 not specified"
shutdown() {
@ -54,7 +60,7 @@ trap shutdown EXIT INT
set -x
for zone in "$@"; do
echo "--- $cloudProvider config [$zone]"
timeout 5m net/"$cloudProvider".sh config -p "$netName" -z "$zone"
timeout 5m net/"$cloudProvider".sh config $maybePublicNetwork -p "$netName" -z "$zone"
net/init-metrics.sh -e
echo "+++ $cloudProvider.sh info"
net/"$cloudProvider".sh info