diff options
author | Federico Bond <federicobond@gmail.com> | 2017-07-20 03:12:49 +0800 |
---|---|---|
committer | Federico Bond <federicobond@gmail.com> | 2017-10-06 02:21:16 +0800 |
commit | cd420dc0bcf35117c34c287e7d258ff1ffd59714 (patch) | |
tree | d1bc7c47e06d35ce64dcd12553bcb400ddc4901b /test | |
parent | 19274c78904632d568bf56e95603d22ef091ce77 (diff) | |
download | dexon-solidity-cd420dc0bcf35117c34c287e7d258ff1ffd59714.tar.gz dexon-solidity-cd420dc0bcf35117c34c287e7d258ff1ffd59714.tar.zst dexon-solidity-cd420dc0bcf35117c34c287e7d258ff1ffd59714.zip |
cmdlineTests: print solc output instead of contract code on error
Diffstat (limited to 'test')
-rwxr-xr-x | test/cmdlineTests.sh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/cmdlineTests.sh b/test/cmdlineTests.sh index f12a6686..67018941 100755 --- a/test/cmdlineTests.sh +++ b/test/cmdlineTests.sh @@ -32,6 +32,8 @@ REPO_ROOT=$(cd $(dirname "$0")/.. && pwd) echo $REPO_ROOT SOLC="$REPO_ROOT/build/solc/solc" +FULLARGS="--optimize --combined-json abi,asm,ast,bin,bin-runtime,clone-bin,compact-format,devdoc,hashes,interface,metadata,opcodes,srcmap,srcmap-runtime,userdoc" + echo "Checking that the bug list is up to date..." "$REPO_ROOT"/scripts/update_bugs_by_version.py @@ -43,15 +45,13 @@ function compileFull() { files="$*" set +e - "$SOLC" --optimize \ - --combined-json abi,asm,ast,bin,bin-runtime,clone-bin,compact-format,devdoc,hashes,interface,metadata,opcodes,srcmap,srcmap-runtime,userdoc \ - $files >/dev/null 2>&1 + output=$( ("$SOLC" $FULLARGS $files) 2>&1 ) failed=$? set -e if [ $failed -ne 0 ] then echo "Compilation failed on:" - cat $files + echo "$output" false fi } |