From f6bb44386f3f1d037b4576de3b390316afd4f4c3 Mon Sep 17 00:00:00 2001 From: yaruwangway <69694322+yaruwangway@users.noreply.github.com> Date: Tue, 1 Aug 2023 13:31:00 +0200 Subject: [PATCH] test: fix upgrade test (#2680) * fix: upgrade test * chore: write to log file --- contrib/scripts/upgrade_test_scripts/v12/run_gaia_v11.sh | 4 +--- .../upgrade_test_scripts/v12/run_upgrade_commands_v12.sh | 7 +++---- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/contrib/scripts/upgrade_test_scripts/v12/run_gaia_v11.sh b/contrib/scripts/upgrade_test_scripts/v12/run_gaia_v11.sh index 3315cee952f..38040780807 100755 --- a/contrib/scripts/upgrade_test_scripts/v12/run_gaia_v11.sh +++ b/contrib/scripts/upgrade_test_scripts/v12/run_gaia_v11.sh @@ -1,10 +1,8 @@ #!/bin/sh set -o errexit -o nounset -set -x NODE_HOME=$(realpath ./build/.gaia) -rm -r $NODE_HOME echo "NODE_HOME = ${NODE_HOME}" BINARY=$NODE_HOME/cosmovisor/genesis/bin/gaiad echo "BINARY = ${BINARY}" @@ -72,4 +70,4 @@ enable = true/g' $NODE_HOME/config/app.toml pwd ls $NODE_HOME -$COSMOVISOR run start --home $NODE_HOME --x-crisis-skip-assert-invariants +$COSMOVISOR run start --home $NODE_HOME --x-crisis-skip-assert-invariants > v11.out 2>&1 & diff --git a/contrib/scripts/upgrade_test_scripts/v12/run_upgrade_commands_v12.sh b/contrib/scripts/upgrade_test_scripts/v12/run_upgrade_commands_v12.sh index c883649e2f7..12c110f02d6 100755 --- a/contrib/scripts/upgrade_test_scripts/v12/run_upgrade_commands_v12.sh +++ b/contrib/scripts/upgrade_test_scripts/v12/run_upgrade_commands_v12.sh @@ -1,6 +1,6 @@ #!/bin/sh -set -x -# set -o errexit -o nounset + +set -o errexit -o nounset UPGRADE_HEIGHT=$1 @@ -29,8 +29,7 @@ sleep 10 $BINARY config chain-id $CHAINID --home $NODE_HOME $BINARY config output json --home $NODE_HOME $BINARY config keyring-backend test --home $NODE_HOME -# $BINARY config --home $NODE_HOME -$BINARY config broadcast-mode block --home $NODE_HOME +$BINARY config --home $NODE_HOME key=$($BINARY keys show val --home $NODE_HOME) if [ -z "$key" ]; then