install testinfra directly
Change-Id: I38d81faf7d88fdf9841c668efc71f9bec5a6a72c
diff --git a/cloud-deploy-pipeline.groovy b/cloud-deploy-pipeline.groovy
index 873be59..64cc23d 100644
--- a/cloud-deploy-pipeline.groovy
+++ b/cloud-deploy-pipeline.groovy
@@ -418,7 +418,7 @@
if (common.checkContains('STACK_TEST', 'ceph')) {
stage('Run infra tests') {
- def cmd = "bash -c 'apt-get install -y python-pip && pip install -r /usr/share/salt-formulas/env/ceph/files/testinfra/requirements.txt && python -m pytest --junitxml=/root/report.xml /usr/share/salt-formulas/env/ceph/files/testinfra/'"
+ def cmd = "apt-get install -y python-pip && pip install testinfra && python -m pytest --junitxml=/root/report.xml /usr/share/salt-formulas/env/ceph/files/testinfra/"
salt.cmdRun(saltMaster, 'I@ceph:mon', cmd)
writeFile(file: 'report.xml', text: salt.getFileContent(saltMaster, TEST_TEMPEST_TARGET, '/root/report.xml'))
junit(keepLongStdio: true, testResults: 'report.xml')