Skip to content

Commit

Permalink
test: fix upgrade test (cosmos#2680)
Browse files Browse the repository at this point in the history
* fix: upgrade test

* chore: write to log file
  • Loading branch information
yaruwangway committed Aug 1, 2023
1 parent 8769bb3 commit f6bb443
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
4 changes: 1 addition & 3 deletions contrib/scripts/upgrade_test_scripts/v12/run_gaia_v11.sh
Original file line number Diff line number Diff line change
@@ -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}"
Expand Down Expand Up @@ -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 &
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/sh
set -x
# set -o errexit -o nounset

set -o errexit -o nounset

UPGRADE_HEIGHT=$1

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit f6bb443

Please sign in to comment.