mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Merge pull request #4407 from ajsantander/exit-if-no-eth
Avoid hanging in tests.sh when IPC program is not found
This commit is contained in:
commit
672bc7fc00
@ -109,9 +109,18 @@ function run_eth()
|
||||
sleep 2
|
||||
}
|
||||
|
||||
function check_eth() {
|
||||
printTask "Running IPC tests with $ETH_PATH..."
|
||||
if ! hash $ETH_PATH 2>/dev/null; then
|
||||
printError "$ETH_PATH not found"
|
||||
exit 1
|
||||
fi
|
||||
}
|
||||
|
||||
if [ "$IPC_ENABLED" = true ];
|
||||
then
|
||||
download_eth
|
||||
check_eth
|
||||
ETH_PID=$(run_eth /tmp/test)
|
||||
fi
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user