aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2018-06-21 04:50:32 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2018-07-09 18:08:36 +0800
commit8b8565c873466a6f2f9a38e03819e46edbd90894 (patch)
tree04892f03bcbfde17fc4f724f2d8e4f731e332737
parentf3e0bf1dd85fef29bf80f2235b5c0c19a6d30f31 (diff)
downloaddexon-solidity-8b8565c873466a6f2f9a38e03819e46edbd90894.tar.gz
dexon-solidity-8b8565c873466a6f2f9a38e03819e46edbd90894.tar.zst
dexon-solidity-8b8565c873466a6f2f9a38e03819e46edbd90894.zip
Simplify code regarding eth in tests.sh
-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
}