thrnciar / tests / python

Forked from tests/python 4 years ago
Clone

Blame selftest/parallel.sh

11bfd62
#!/bin/sh -eux
11bfd62
11bfd62
# set python version
11bfd62
VERSION=${VERSION:-3.7}
11bfd62
PYTHON=${PYTHON:-python$VERSION}
11bfd62
11bfd62
# what to skip
11bfd62
# test_socket swaps and kills the machine https://bugs.python.org/issue34587
11bfd62
X=${X:-"-x test_socket"}
11bfd62
11bfd62
# parallel jobs, 0 lets Python decide what's best
11bfd62
JOBS=${JOBS:-0}
11bfd62
f2b309e
# Fedora sets TLSv1 as explicit minimum versions.
f2b309e
# Python's test suite assumes that the minimum protocol version is set to
97db1f9
# a magic marker. We workaround the test problem by setting:
97db1f9
export OPENSSL_CONF=/non-existing-file
97db1f9
# https://bugzilla.redhat.com/show_bug.cgi?id=1618753
97db1f9
8dbc369
$PYTHON -m test.pythoninfo
8dbc369
$PYTHON -m test -wW -j$JOBS $X