Skip to content

Commit

Permalink
Merge pull request #7222 from ethereum/fixVersionPruning
Browse files Browse the repository at this point in the history
Remove version in errors for release build.
  • Loading branch information
chriseth authored Aug 12, 2019
2 parents c082d0b + 4596a76 commit 22be859
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/cmdlineTests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ function test_solc_behaviour()
if [[ "$solc_args" == *"--standard-json"* ]]
then
sed -i -e 's/{[^{]*Warning: This is a pre-release compiler version[^}]*},\{0,1\}//' "$stdout_path"
sed -i.bak -E -e 's/ Consider adding \\"pragma solidity \^[0-9.]*;\\"//g' "$stdout_path"
sed -i -e 's/"errors":\[\],\{0,1\}//' "$stdout_path"
# Remove explicit bytecode and references to bytecode offsets
sed -i.bak -E -e 's/\"object\":\"[a-f0-9]+\"/\"object\":\"bytecode removed\"/g' "$stdout_path"
Expand Down

0 comments on commit 22be859

Please sign in to comment.