mirror of
https://github.com/ggml-org/llama.cpp.git
synced 2026-09-29 09:27:33 -05:00
tests : skip pytest workers when PYTEST_WORKERS=1 (#29610)
Assisted-by: pi:llama.cpp/Qwen3.8-27B
This commit is contained in:
@@ -8,13 +8,19 @@ set -eu
|
||||
|
||||
WORKERS="${PYTEST_WORKERS:-4}"
|
||||
|
||||
if [ "${WORKERS}" -eq 1 ]; then
|
||||
WORKER_FLAGS=""
|
||||
else
|
||||
WORKER_FLAGS="-n ${WORKERS} --dist=worksteal"
|
||||
fi
|
||||
|
||||
if [ $# -lt 1 ]
|
||||
then
|
||||
if [[ "${SLOW_TESTS:-0}" == 1 ]]; then
|
||||
pytest --durations=30 -v -x -n "${WORKERS}" --dist=worksteal
|
||||
pytest --durations=30 -v -x ${WORKER_FLAGS}
|
||||
else
|
||||
pytest --durations=30 -v -x -n "${WORKERS}" --dist=worksteal -m "not slow"
|
||||
pytest --durations=30 -v -x ${WORKER_FLAGS} -m "not slow"
|
||||
fi
|
||||
else
|
||||
pytest --durations=30 -n "${WORKERS}" --dist=worksteal "$@"
|
||||
pytest --durations=30 ${WORKER_FLAGS} "$@"
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user