Skip to content

Commit

Permalink
fix: handle new location for e2e test solana version (#716)
Browse files Browse the repository at this point in the history
  • Loading branch information
aalu1418 authored May 22, 2024
1 parent 3e5ef75 commit 54b7bba
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/update-solana.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ cliVersion=$(grep -oh "release.solana.com/v[0-9]*.[0-9]*.[0-9]*" scripts/install
echo "Current Test CLI Version: $cliVersion"

cd integration-tests
testVersion=$(grep -oh "solanalabs/solana:v[0-9]*.[0-9]*.[0-9]*" */**/*.go)
testVersion=$(grep -oh "solanalabs/solana:v[0-9]*.[0-9]*.[0-9]*" testconfig/default.toml)
echo "Current E2E Test Version: $testVersion"
cd ..

Expand All @@ -24,11 +24,11 @@ echo "Replacing Solana Image Version"
if [ "$(uname -s)" = "Darwin" ]; then
sed -i '' -e "s~$cliVersion~$latestCLI~" scripts/install-solana-ci.sh
cd integration-tests
sed -i '' -e "s~$testVersion~$latestVersion~" */**/*.go
sed -i '' -e "s~$testVersion~$latestVersion~" testconfig/default.toml
else
sed -i -e "s~$cliVersion~$latestCLI~" scripts/install-solana-ci.sh
cd integration-tests
sed -i -e "s~$testVersion~$latestVersion~" */**/*.go
sed -i -e "s~$testVersion~$latestVersion~" testconfig/default.toml
fi
cd ..

Expand Down

0 comments on commit 54b7bba

Please sign in to comment.