From 7171ac0124b9a23be9f631b8d8191aae07a52516 Mon Sep 17 00:00:00 2001 From: Alex Beregszaszi Date: Tue, 27 Feb 2018 14:52:50 +0100 Subject: [PATCH] Simplify error handling in tests.sh --- scripts/tests.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/scripts/tests.sh b/scripts/tests.sh index 69b2b338e..9c20815eb 100755 --- a/scripts/tests.sh +++ b/scripts/tests.sh @@ -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