mirror of
https://github.com/certbot/certbot.git
synced 2026-06-14 19:20:09 -04:00
move values to pytest.ini
This commit is contained in:
parent
c326c02108
commit
7383fc6bf0
3 changed files with 5 additions and 2 deletions
2
pytest.ini
Normal file
2
pytest.ini
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
[pytest]
|
||||
addopts = --numprocesses auto --pyargs
|
||||
|
|
@ -14,6 +14,7 @@ fi
|
|||
|
||||
temp_cwd=$(mktemp -d)
|
||||
trap "rm -rf $temp_cwd" EXIT
|
||||
cp pytest.ini "$temp_cwd"
|
||||
|
||||
set -x
|
||||
for requirement in "$@" ; do
|
||||
|
|
@ -24,6 +25,6 @@ for requirement in "$@" ; do
|
|||
pkg="certbot"
|
||||
fi
|
||||
cd "$temp_cwd"
|
||||
pytest --numprocesses auto --quiet --pyargs $pkg
|
||||
pytest --quiet $pkg
|
||||
cd -
|
||||
done
|
||||
|
|
|
|||
|
|
@ -61,7 +61,7 @@ cover () {
|
|||
fi
|
||||
|
||||
pkg_dir=$(echo "$1" | tr _ -)
|
||||
pytest --cov "$pkg_dir" --cov-append --cov-report= --numprocesses auto --pyargs "$1"
|
||||
pytest --cov "$pkg_dir" --cov-append --cov-report= "$1"
|
||||
coverage report --fail-under="$min" --include="$pkg_dir/*" --show-missing
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue