run infratest on master
Change-Id: Idb07e04de9315cd46ba35850ebe463d16bcd3ac4
diff --git a/cloud-deploy-pipeline.groovy b/cloud-deploy-pipeline.groovy
index 64cc23d..be20ab7 100644
--- a/cloud-deploy-pipeline.groovy
+++ b/cloud-deploy-pipeline.groovy
@@ -418,8 +418,8 @@
if (common.checkContains('STACK_TEST', 'ceph')) {
stage('Run infra tests') {
- 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)
+ def cmd = "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/"
+ salt.cmdRun(saltMaster, 'I@salt:master', cmd)
writeFile(file: 'report.xml', text: salt.getFileContent(saltMaster, TEST_TEMPEST_TARGET, '/root/report.xml'))
junit(keepLongStdio: true, testResults: 'report.xml')
}