api test: parallelize
The auto setting will choose based on the number of CPUs, including virtual cores. For me this is a 7x speedup.
This commit is contained in:
parent
0f9c9eef3f
commit
72fbbc2868
4
Makefile
4
Makefile
|
@ -31,7 +31,7 @@ aptdeps:
|
|||
python3-requests-unixsocket python3-jsonschema python3-apport \
|
||||
python3-bson xorriso isolinux python3-aiohttp cloud-init ssh-import-id \
|
||||
curl jq build-essential python3-pytest python3-async-timeout \
|
||||
language-selector-common fuseiso
|
||||
language-selector-common fuseiso python3-pytest-xdist
|
||||
|
||||
.PHONY: install_deps
|
||||
install_deps: aptdeps gitdeps
|
||||
|
@ -88,7 +88,7 @@ unit: gitdeps
|
|||
|
||||
.PHONY: api
|
||||
api: gitdeps
|
||||
$(PYTHON) -m pytest subiquity/tests/api
|
||||
$(PYTHON) -m pytest -n auto subiquity/tests/api
|
||||
|
||||
.PHONY: integration
|
||||
integration: gitdeps
|
||||
|
|
|
@ -11,7 +11,7 @@ ConditionPathExists=/dev/zfs
|
|||
EOF
|
||||
cp -r /etc/systemd/system/zfs-mount.service.d/ /etc/systemd/system/zfs-share.service.d/
|
||||
systemctl daemon-reload
|
||||
apt-get install -o APT::Get::Always-Include-Phased-Updates=true -y --no-install-recommends libnl-3-dev libnl-genl-3-dev libnl-route-3-dev libsystemd-dev python3-distutils-extra pkg-config python3.5 python3-pip git lsb-release python3-setuptools gcc python3-dev python3-wheel pep8 python3-pyflakes python3-bson make curl jq build-essential python3-pytest python3-async-timeout language-selector-common
|
||||
apt-get install -o APT::Get::Always-Include-Phased-Updates=true -y --no-install-recommends libnl-3-dev libnl-genl-3-dev libnl-route-3-dev libsystemd-dev python3-distutils-extra pkg-config python3.5 python3-pip git lsb-release python3-setuptools gcc python3-dev python3-wheel pep8 python3-pyflakes python3-bson make curl jq build-essential python3-pytest python3-async-timeout language-selector-common python3-pytest-xdist
|
||||
pip3 install -r requirements.txt
|
||||
|
||||
make gitdeps
|
||||
|
|
Loading…
Reference in New Issue