use junit for ceph
Change-Id: I7e4c5fe936f86755dbd3da9b476b2b202a5511be
diff --git a/cloud-deploy-pipeline.groovy b/cloud-deploy-pipeline.groovy
index 0c8b2a5..c267afc 100644
--- a/cloud-deploy-pipeline.groovy
+++ b/cloud-deploy-pipeline.groovy
@@ -418,8 +418,10 @@
if (common.checkContains('STACK_TEST', 'ceph')) {
stage('Run infra tests') {
- def cmd = "apt-get install python-pip && pip install -r /usr/share/salt-formulas/env/ceph/files/testinfra/requirements.txt && python -m pytest --junitxml=testinfra.xml /usr/share/salt-formulas/env/ceph/files/testinfra/"
+ 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@ceph:mon', cmd)
+ writeFile(file: 'report.xml', text: salt.getFileContent(saltMaster, TEST_TEMPEST_TARGET, '/root/report.xml'))
+ junit(keepLongStdio: true, testResults: 'report.xml')
}
}