python/selftest/parallel.sh
2018-11-14 16:31:00 +01:00

14 lines
307 B
Bash
Executable file

#!/bin/sh -eux
# set python version
VERSION=${VERSION:-3.7}
PYTHON=${PYTHON:-python$VERSION}
# what to skip
# test_socket swaps and kills the machine https://bugs.python.org/issue34587
X=${X:-"-x test_socket"}
# parallel jobs, 0 lets Python decide what's best
JOBS=${JOBS:-0}
$PYTHON -m test -j$JOBS $X