Update upload of tempest results
Upload tempest results to cfg01 node only when they were launched
on another node.
Store test results in /root/rally_reports/
Change-Id: I9bd324df655f0c473bf42687c2c305e4a5300797
diff --git a/src/com/mirantis/mk/Test.groovy b/src/com/mirantis/mk/Test.groovy
index d6f37ee..f197feb 100644
--- a/src/com/mirantis/mk/Test.groovy
+++ b/src/com/mirantis/mk/Test.groovy
@@ -67,13 +67,15 @@
}
/**
- * Upload results to worker
+ * Upload results to cfg01 node
*
*/
def copyTempestResults(master, target) {
def salt = new com.mirantis.mk.Salt()
- salt.runSaltProcessStep(master, "${target}", 'cmd.run', ["scp /root/docker-tempest.log cfg01:/home/ubuntu/ && " +
- "find /root -name result.xml -exec scp {} cfg01:/home/ubuntu \\;"])
+ if (! target.contains('cfg')) {
+ salt.runSaltProcessStep(master, "${target}", 'cmd.run', ["mkdir /root/rally_reports/ && " +
+ "rsync -av /root/rally_reports/ cfg01:/root/rally_reports/"])
+ }
}