Do not include empty JSON objects in output.

This commit is contained in:
chriseth
2018-12-19 14:59:29 +01:00
parent 1bf396af78
commit 4c7151e57f
5 changed files with 16 additions and 10 deletions
+1 -1
View File
@@ -132,7 +132,7 @@ 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 -e 's/,"errors":\[\]//' "$stdout_path"
sed -i -e 's/"errors":\[\],\{0,1\}//' "$stdout_path"
else
sed -i -e '/^Warning: This is a pre-release compiler version, please do not use it in production./d' "$stderr_path"
sed -i -e 's/ Consider adding "pragma .*$//' "$stderr_path"