mirror of
https://github.com/certbot/certbot.git
synced 2026-05-28 04:34:11 -04:00
16 lines
550 B
Bash
16 lines
550 B
Bash
|
|
#!/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" "$@"
|