]> git.apps.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)
committerGuillaume Abrioux <gabrioux@redhat.com>
Fri, 3 Apr 2020 07:59:06 +0000 (09:59 +0200)
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>
tox.ini

diff --git a/tox.ini b/tox.ini
index 9297e35542ae37f67614462c849436dcd4ed37e4..c4e70156176532b5f0831f1997357150ea0a9404 100644 (file)
--- a/tox.ini
+++ b/tox.ini
@@ -197,7 +197,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=