From cfa571e4b6b68d02e76e70e8d21d7060f07c3cef Mon Sep 17 00:00:00 2001 From: Ryo Onodera Date: Wed, 1 Apr 2020 11:57:40 +0900 Subject: [PATCH] Allow to run testnet-automation.sh directly from PRs --- net/net.sh | 6 +++++- net/remote/remote-node.sh | 8 +++++++- system-test/automation_utils.sh | 8 ++++++++ system-test/testnet-automation.sh | 13 ++++++++++++- 4 files changed, 32 insertions(+), 3 deletions(-) diff --git a/net/net.sh b/net/net.sh index 000cf9f9415d33..aaaf964207b1de 100755 --- a/net/net.sh +++ b/net/net.sh @@ -181,7 +181,7 @@ build() { buildVariant= if $debugBuild; then - buildVariant=debug + buildVariant=--debug fi $MAYBE_DOCKER bash -c " @@ -862,6 +862,10 @@ while getopts "h?T:t:o:f:rc:Fn:i:d" opt "${shortArgs[@]}"; do releaseChannel=$OPTARG deployMethod=tar ;; + local) + # just pass-through to use default values for $deployMethod and $doBuild + true + ;; *) usage "Invalid release channel: $OPTARG" ;; diff --git a/net/remote/remote-node.sh b/net/remote/remote-node.sh index 897a0ec2307c9d..ab071485fafc11 100755 --- a/net/remote/remote-node.sh +++ b/net/remote/remote-node.sh @@ -283,8 +283,12 @@ EOF --entrypoint "$entrypointIp:8001" --gossip-port 8001 --rpc-port 8899 - --expected-shred-version "$(cat config/shred-version)" ) + if [[ -f config/shred-version && -s config/shred-version ]]; then + args+=( + --expected-shred-version "$(cat config/shred-version)" + ) + fi if [[ $nodeType = blockstreamer ]]; then args+=( --blockstream /tmp/solana-blockstream.sock @@ -374,6 +378,7 @@ cat >> ~/solana/on-reboot <> ~/solana/on-reboot <