From ae03743d47bbdf0aacd29ec8c5cd6a8853981ece Mon Sep 17 00:00:00 2001 From: Guillaume Abrioux Date: Mon, 14 Mar 2022 14:40:47 +0000 Subject: [PATCH] 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) --- src/ceph-volume/tox.ini | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ceph-volume/tox.ini b/src/ceph-volume/tox.ini index 92213f769c4cc..c58951a9b00c3 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 -- 2.39.5