Skip to content

Commit

Permalink
chore: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
turadg committed Feb 6, 2024
1 parent 19655c4 commit 5aa3962
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
2 changes: 0 additions & 2 deletions packages/synthetic-chain/upgrade-test-scripts/run_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ fi

echo "[$PROPOSAL] Starting agd"

echo "[$PROPOSAL_PATH] Starting agd"

startAgd

echo "[$PROPOSAL] Running test.sh."
Expand Down
8 changes: 4 additions & 4 deletions packages/synthetic-chain/upgrade-test-scripts/run_use.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@ if [ -z "$PROPOSAL" ]; then
echo "Must specify what proposal to use"
exit 1
fi
PROPOSAL_PROPOSAL="/usr/src/proposals/$PROPOSAL/"
PROPOSAL_DIR="/usr/src/proposals/$PROPOSAL/"

if [ ! -d "$PROPOSAL_PROPOSAL" ]; then
if [ ! -d "$PROPOSAL_DIR" ]; then
echo "Proposal $PROPOSAL does not exist"
exit 1
fi

if [ ! -f "$PROPOSAL_PROPOSAL/use.sh" ]; then
if [ ! -f "$PROPOSAL_DIR/use.sh" ]; then
echo "Proposal $PROPOSAL does not have a use.sh. Skipping."
exit 0
fi
Expand All @@ -27,7 +27,7 @@ echo "[$PROPOSAL] Starting agd in the background."
startAgd

echo "[$PROPOSAL] Agd started. Running use.sh."
cd "$PROPOSAL_PROPOSAL"
cd "$PROPOSAL_DIR"
./use.sh

echo "[$PROPOSAL] Actions completed. Running for a few blocks and exiting."
Expand Down

0 comments on commit 5aa3962

Please sign in to comment.