Add --timeout to selftest/parallel.sh

This commit is contained in:
Miro Hrončok 2024-09-11 19:57:24 +02:00
commit a0a96e2721

View file

@ -11,6 +11,8 @@ PYTHON=${PYTHON:-python$VERSION}
# test_socket swaps and kills the machine https://bugs.python.org/issue34587
X=${X:-"-x test_socket"}
TIMEOUT=${TIMEOUT:-1800}
# parallel jobs, 0 lets Python decide what's best
JOBS=${JOBS:-0}
@ -30,4 +32,4 @@ export OPENSSL_CONF=/non-existing-file
$PYTHON -c 'import distutils' 2>/dev/null && export SETUPTOOLS_USE_DISTUTILS=stdlib || true
$PYTHON -m test.pythoninfo
$PYTHON -m test -wW -j$JOBS $X
$PYTHON -m test -wW -j$JOBS --timeout=$TIMEOUT $X