Skip to content

Commit 260e044

Browse files
committed
Avoid hanging in tests.sh when IPC program is not found
1 parent 4649f92 commit 260e044

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

scripts/tests.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,9 +109,18 @@ function run_eth()
109109
sleep 2
110110
}
111111

112+
function check_eth() {
113+
printTask "Running IPC tests with $ETH_PATH..."
114+
if ! hash $ETH_PATH 2>/dev/null; then
115+
printError "$ETH_PATH not found"
116+
exit 1
117+
fi
118+
}
119+
112120
if [ "$IPC_ENABLED" = true ];
113121
then
114122
download_eth
123+
check_eth
115124
ETH_PID=$(run_eth /tmp/test)
116125
fi
117126

0 commit comments

Comments
 (0)