mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Simplify error handling in tests.sh
This commit is contained in:
parent
982476f99d
commit
7171ac0124
@ -96,7 +96,6 @@ then
|
||||
progress=""
|
||||
fi
|
||||
|
||||
ERROR_CODE=0
|
||||
# And then run the Solidity unit-tests in the matrix combination of optimizer / no optimizer
|
||||
# and homestead / byzantium VM, # pointing to that IPC endpoint.
|
||||
for optimize in "" "--optimize"
|
||||
@ -116,9 +115,8 @@ do
|
||||
fi
|
||||
set +e
|
||||
"$REPO_ROOT"/build/test/soltest $progress $log -- "$optimize" --evm-version "$vm" --ipcpath /tmp/test/geth.ipc
|
||||
THIS_ERR=$?
|
||||
set -e
|
||||
if [ $? -ne 0 ]; then ERROR_CODE=$?; fi
|
||||
if [ $? -ne 0 ]; then exit $?; fi
|
||||
done
|
||||
done
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user