aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xscripts/tests.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/tests.sh b/scripts/tests.sh
index 7fb260bc..a3b1b0d5 100755
--- a/scripts/tests.sh
+++ b/scripts/tests.sh
@@ -88,12 +88,12 @@ function download_eth()
ETH_BINARY=aleth_2018-06-20_artful
ETH_HASH="02e6c4b3d98299885e73f7db6c9e3fbe3d66d444"
fi
- wget -q -O /tmp/test/eth https://github.com/ethereum/cpp-ethereum/releases/download/solidityTester/$ETH_BINARY
- test "$(shasum /tmp/test/eth)" = "$ETH_HASH /tmp/test/eth"
+ ETH_PATH="/tmp/test/eth"
+ wget -q -O $ETH_PATH https://github.com/ethereum/cpp-ethereum/releases/download/solidityTester/$ETH_BINARY
+ test "$(shasum $ETH_PATH)" = "$ETH_HASH $ETH_PATH"
sync
- chmod +x /tmp/test/eth
+ chmod +x $ETH_PATH
sync # Otherwise we might get a "text file busy" error
- ETH_PATH="/tmp/test/eth"
fi
}