]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
tox: replace testinfra by pytest for add-mgrs
authorDimitri Savineau <dsavinea@redhat.com>
Thu, 2 Apr 2020 20:26:48 +0000 (16:26 -0400)
committerDimitri Savineau <savineau.dimitri@gmail.com>
Fri, 3 Apr 2020 14:43:21 +0000 (10:43 -0400)
The add-mgrs scenario is still using the testinfra command instead of
pytest so the tests exectution are failling.

ERROR: InvocationError for command could not find executable testinfra

This also adds the missing --ssh-config option to testinfra.

Signed-off-by: Dimitri Savineau <dsavinea@redhat.com>
(cherry picked from commit 92f538f1af56c8f4cd28a4409e32397efbc77e52)

tox.ini

diff --git a/tox.ini b/tox.ini
index a584716e92a3899a41caff2243ef721319a7fbdb..5270897de68d8d15af65019e6884912b25abd911 100644 (file)
--- a/tox.ini
+++ b/tox.ini
@@ -264,7 +264,7 @@ commands=
       ceph_dev_branch={env:CEPH_DEV_BRANCH:master} \
       ceph_dev_sha1={env:CEPH_DEV_SHA1:latest} \
       "
-  testinfra -n 8 --sudo -v --connection=ansible --ansible-inventory={changedir}/hosts-2 {toxinidir}/tests/functional/tests
+  py.test --reruns 5 --reruns-delay 1 -n 8 --sudo -v --connection=ansible --ansible-inventory={changedir}/hosts-2 --ssh-config={changedir}/vagrant_ssh_config {toxinidir}/tests/functional/tests
 
 [add-mdss]
 commands=