From: Guillaume Abrioux Date: Mon, 14 Mar 2022 14:40:47 +0000 (+0000) Subject: ceph-volume/tests: speed up tox tests X-Git-Tag: v16.2.11~86^2~5^2~6 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=9a20700e21139e5dc8401ce64b5b4530a5a70028;p=ceph.git ceph-volume/tests: speed up tox tests Let's use `--numprocesses=auto` in order to speed up the unit tests execution. See the difference, without `--numprocesses=auto`: ``` ... omitted output ... real 1m22.884s user 0m23.003s sys 0m20.504s ``` with `--numprocesses=auto`: ``` ... omitted output ... real 0m18.767s user 0m33.056s sys 0m23.244s ``` Signed-off-by: Guillaume Abrioux (cherry picked from commit cd5eb7939ed92b584c45689a3169847811b8518d) --- diff --git a/src/ceph-volume/tox.ini b/src/ceph-volume/tox.ini index 6ccf3e775caad..4a7e9af1f10bc 100644 --- a/src/ceph-volume/tox.ini +++ b/src/ceph-volume/tox.ini @@ -5,9 +5,10 @@ skip_missing_interpreters = true [testenv] deps= pytest + pytest-xdist mock install_command=./tox_install_command.sh {opts} {packages} -commands=py.test -v {posargs:ceph_volume/tests} --ignore=ceph_volume/tests/functional +commands=py.test --numprocesses=auto -vv {posargs:ceph_volume/tests} --ignore=ceph_volume/tests/functional [testenv:py3-flake8] deps=flake8