mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 23:21:59 +00:00
Add retries to AST fuzzer
This commit is contained in:
parent
90db762c87
commit
333dfab6a6
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user