Autodetect threads count for fast tests as half of CPUs

This commit is contained in:
Mikhail f. Shiryaev 2021-12-16 15:15:37 +01:00
parent eefdeabff2
commit 1b623f6b71
No known key found for this signature in database
GPG Key ID: 4B02ED204C7D93F4

View File

@ -257,7 +257,13 @@ function run_tests
start_server
set +e
time clickhouse-test --hung-check -j 8 --order=random \
local NPROC
NPROC=$(nproc)
NPROC=$((NPROC / 2))
if [[ $NPROC == 0 ]]; then
NPROC=1
fi
time clickhouse-test --hung-check -j "${NPROC}" --order=random \
--fast-tests-only --no-long --testname --shard --zookeeper --check-zookeeper-session \
-- "$FASTTEST_FOCUS" 2>&1 \
| ts '%Y-%m-%d %H:%M:%S' \