From e3ba664ca5c197356acda1c883862c8048e76169 Mon Sep 17 00:00:00 2001 From: Dimitri Savineau Date: Thu, 2 Apr 2020 16:26:48 -0400 Subject: [PATCH] tox: replace testinfra by pytest for add-mgrs 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 (cherry picked from commit 92f538f1af56c8f4cd28a4409e32397efbc77e52) --- tox.ini | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tox.ini b/tox.ini index 0aeeca679..47cfd076f 100644 --- a/tox.ini +++ b/tox.ini @@ -262,7 +262,7 @@ commands= ceph_docker_image={env:CEPH_DOCKER_IMAGE:ceph/daemon} \ ceph_docker_image_tag={env:CEPH_DOCKER_IMAGE_TAG:latest-octopus} \ " - 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=