Skip to content

Commit

Permalink
print last 100 log lines
Browse files Browse the repository at this point in the history
  • Loading branch information
dasanchez committed Aug 29, 2023
1 parent 2fcd1e2 commit 4d8e1a2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/major_fresh_upgrade/software_upgrade.sh
Original file line number Diff line number Diff line change
Expand Up @@ -59,15 +59,15 @@ if [ "$COSMOVISOR" = true ]; then
mkdir -p $HOME_1/cosmovisor/upgrades/$upgrade_name/bin
mkdir -p $HOME_2/cosmovisor/upgrades/$upgrade_name/bin
mkdir -p $HOME_3/cosmovisor/upgrades/$upgrade_name/bin
wget $DOWNLOAD_URL -O ./upgraded
wget $DOWNLOAD_URL -O ./upgraded -q
cp ./upgraded $HOME_1/cosmovisor/upgrades/$upgrade_name/bin/$CHAIN_BINARY
cp ./upgraded $HOME_2/cosmovisor/upgrades/$upgrade_name/bin/$CHAIN_BINARY
cp ./upgraded $HOME_3/cosmovisor/upgrades/$upgrade_name/bin/$CHAIN_BINARY
fi

tests/test_block_production.sh $gaia_host $gaia_port $blocks_delta
echo "The upgrade height was reached."
sudo journalctl -u $PROVIDER_SERVICE_1 | tail -n 50
sudo journalctl -u $PROVIDER_SERVICE_1 | tail -n 100

else
echo "Waiting for the upgrade to take place at block height $upgrade_height..."
Expand All @@ -78,7 +78,7 @@ else
sudo systemctl stop $PROVIDER_SERVICE_1
sudo systemctl stop $PROVIDER_SERVICE_2
sudo systemctl stop $PROVIDER_SERVICE_3
wget $DOWNLOAD_URL -O ./upgraded
wget $DOWNLOAD_URL -O ./upgraded -q
chmod +x ./upgraded
mv ./upgraded $HOME/go/bin/$CHAIN_BINARY
sudo systemctl start $PROVIDER_SERVICE_1
Expand Down

0 comments on commit 4d8e1a2

Please sign in to comment.