mirror of
https://github.com/certbot/certbot.git
synced 2026-06-03 22:08:07 -04:00
Revert "Fix pytest on macOS in Travis (#5360)"
This reverts commit 5388842e5b.
This commit is contained in:
parent
6b29d159a2
commit
e4062efd9f
5 changed files with 2 additions and 26 deletions
|
|
@ -1,2 +0,0 @@
|
|||
[pytest]
|
||||
addopts = --quiet
|
||||
|
|
@ -19,5 +19,5 @@ for requirement in "$@" ; do
|
|||
if [ $pkg = "." ]; then
|
||||
pkg="certbot"
|
||||
fi
|
||||
"$(dirname $0)/pytest.sh" --pyargs $pkg
|
||||
pytest --numprocesses auto --quiet --pyargs $pkg
|
||||
done
|
||||
|
|
|
|||
|
|
@ -1,15 +0,0 @@
|
|||
#!/bin/bash
|
||||
# Runs pytest with the provided arguments, adding --numprocesses to the command
|
||||
# line. This argument is set to "auto" if the environmnent variable TRAVIS is
|
||||
# not set, otherwise, it is set to 2. This works around
|
||||
# https://github.com/pytest-dev/pytest-xdist/issues/9. Currently every Travis
|
||||
# environnment provides two cores. See
|
||||
# https://docs.travis-ci.com/user/reference/overview/#Virtualization-environments.
|
||||
|
||||
if ${TRAVIS:-false}; then
|
||||
NUMPROCESSES="2"
|
||||
else
|
||||
NUMPROCESSES="auto"
|
||||
fi
|
||||
|
||||
pytest --numprocesses "$NUMPROCESSES" "$@"
|
||||
|
|
@ -51,8 +51,7 @@ cover () {
|
|||
fi
|
||||
|
||||
pkg_dir=$(echo "$1" | tr _ -)
|
||||
pytest="$(dirname $0)/tools/pytest.sh"
|
||||
"$pytest" --cov "$pkg_dir" --cov-append --cov-report= --pyargs "$1"
|
||||
pytest --cov "$pkg_dir" --cov-append --cov-report= --numprocesses auto --pyargs "$1"
|
||||
coverage report --fail-under="$min" --include="$pkg_dir/*" --show-missing
|
||||
}
|
||||
|
||||
|
|
|
|||
6
tox.ini
6
tox.ini
|
|
@ -60,8 +60,6 @@ commands =
|
|||
setenv =
|
||||
PYTHONPATH = {toxinidir}
|
||||
PYTHONHASHSEED = 0
|
||||
passenv =
|
||||
TRAVIS
|
||||
|
||||
[testenv:py27-oldest]
|
||||
commands =
|
||||
|
|
@ -69,8 +67,6 @@ commands =
|
|||
setenv =
|
||||
{[testenv]setenv}
|
||||
CERTBOT_OLDEST=1
|
||||
passenv =
|
||||
{[testenv]passenv}
|
||||
|
||||
[testenv:py27-acme-oldest]
|
||||
commands =
|
||||
|
|
@ -123,8 +119,6 @@ basepython = python2.7
|
|||
commands =
|
||||
{[base]install_packages}
|
||||
./tox.cover.sh
|
||||
passenv =
|
||||
{[testenv]passenv}
|
||||
|
||||
[testenv:lint]
|
||||
basepython = python2.7
|
||||
|
|
|
|||
Loading…
Reference in a new issue