Add retries to AST fuzzer

This commit is contained in:
alesapin 2021-12-28 16:12:51 +03:00
parent 90db762c87
commit 333dfab6a6

View File

@ -52,9 +52,21 @@ function clone
} }
function wget_with_retry
{
for _ in 1 2 3 4; do
if wget -nv -nd -c "$1";then
return 0
else
sleep 0.5
fi
done
return 1
}
function download function download
{ {
wget -nv -nd -c "$BINARY_URL_TO_DOWNLOAD" wget_with_retry "$BINARY_URL_TO_DOWNLOAD"
chmod +x clickhouse chmod +x clickhouse
ln -s ./clickhouse ./clickhouse-server ln -s ./clickhouse ./clickhouse-server