aboutsummaryrefslogtreecommitdiffstats
path: root/test/cmdlineTests.sh
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2018-12-19 19:22:19 +0800
committerchriseth <chris@ethereum.org>2018-12-19 21:59:29 +0800
commit4c7151e57f90c2b0d7a47ff7d6470da54bae00f0 (patch)
treeb11479b5aed528bfb652775f326a93e6b32afbe6 /test/cmdlineTests.sh
parent1bf396af78766cb7d61c0ea3d52915231b3407ed (diff)
downloaddexon-solidity-4c7151e57f90c2b0d7a47ff7d6470da54bae00f0.tar.gz
dexon-solidity-4c7151e57f90c2b0d7a47ff7d6470da54bae00f0.tar.zst
dexon-solidity-4c7151e57f90c2b0d7a47ff7d6470da54bae00f0.zip
Do not include empty JSON objects in output.
Diffstat (limited to 'test/cmdlineTests.sh')
-rwxr-xr-xtest/cmdlineTests.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/cmdlineTests.sh b/test/cmdlineTests.sh
index bb71e012..9d2ffa5f 100755
--- a/test/cmdlineTests.sh
+++ b/test/cmdlineTests.sh
@@ -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"