mirror of
https://github.com/ggml-org/llama.cpp.git
synced 2026-09-26 07:57:24 -05:00
This commit changes the default number of pytest workers to 4 instead of auto. Refs: https://github.com/ggml-org/llama.cpp/pull/29369#issuecomment-5815050948
21 lines
504 B
Bash
Executable File
21 lines
504 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
# make sure we are in the right directory
|
|
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
|
|
cd $SCRIPT_DIR
|
|
|
|
set -eu
|
|
|
|
WORKERS="${PYTEST_WORKERS:-4}"
|
|
|
|
if [ $# -lt 1 ]
|
|
then
|
|
if [[ "${SLOW_TESTS:-0}" == 1 ]]; then
|
|
pytest --durations=30 -v -x -n "${WORKERS}" --dist=worksteal
|
|
else
|
|
pytest --durations=30 -v -x -n "${WORKERS}" --dist=worksteal -m "not slow"
|
|
fi
|
|
else
|
|
pytest --durations=30 -n "${WORKERS}" --dist=worksteal "$@"
|
|
fi
|