Backport #62761 to 24.3: Fix shellcheck style checking and issues

This commit is contained in:
robot-clickhouse 2024-04-19 12:05:27 +00:00
parent dadaa13de1
commit 22abcfe6ba
3 changed files with 3 additions and 3 deletions

View File

@ -25,7 +25,7 @@ azurite-blob --blobHost 0.0.0.0 --blobPort 10000 --debug /azurite_log &
config_logs_export_cluster /etc/clickhouse-server/config.d/system_logs_export.yaml
cache_policy=""
if [ $(( $(date +%-d) % 2 )) -eq 1 ]; then
if [ $((RANDOM % 2)) -eq 1 ]; then
cache_policy="SLRU"
else
cache_policy="LRU"

View File

@ -72,7 +72,7 @@ mv /var/log/clickhouse-server/clickhouse-server.log /var/log/clickhouse-server/c
# Randomize cache policies.
cache_policy=""
if [ $(( $(date +%-d) % 2 )) -eq 1 ]; then
if [ $((RANDOM % 2)) -eq 1 ]; then
cache_policy="SLRU"
else
cache_policy="LRU"

View File

@ -5,7 +5,7 @@ cd /ClickHouse/utils/check-style || echo -e "failure\tRepo not found" > /test_ou
start_total=$(date +%s)
start=$(date +%s)
./shellcheck-run.sh |& tee /test_output/shellcheck.txt
./shellcheck-run.sh |& tee /test_output/shellcheck_output.txt
runtime=$(($(date +%s)-start))
echo "Check shellcheck. Done. $runtime seconds."