mirror of
https://github.com/certbot/certbot.git
synced 2026-08-02 03:02:15 +02:00
move values to pytest.ini
This commit is contained in:
@@ -0,0 +1,2 @@
|
|||||||
|
[pytest]
|
||||||
|
addopts = --numprocesses auto --pyargs
|
||||||
@@ -14,6 +14,7 @@ fi
|
|||||||
|
|
||||||
temp_cwd=$(mktemp -d)
|
temp_cwd=$(mktemp -d)
|
||||||
trap "rm -rf $temp_cwd" EXIT
|
trap "rm -rf $temp_cwd" EXIT
|
||||||
|
cp pytest.ini "$temp_cwd"
|
||||||
|
|
||||||
set -x
|
set -x
|
||||||
for requirement in "$@" ; do
|
for requirement in "$@" ; do
|
||||||
@@ -24,6 +25,6 @@ for requirement in "$@" ; do
|
|||||||
pkg="certbot"
|
pkg="certbot"
|
||||||
fi
|
fi
|
||||||
cd "$temp_cwd"
|
cd "$temp_cwd"
|
||||||
pytest --numprocesses auto --quiet --pyargs $pkg
|
pytest --quiet $pkg
|
||||||
cd -
|
cd -
|
||||||
done
|
done
|
||||||
|
|||||||
+1
-1
@@ -61,7 +61,7 @@ cover () {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
pkg_dir=$(echo "$1" | tr _ -)
|
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
|
coverage report --fail-under="$min" --include="$pkg_dir/*" --show-missing
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user