Fix copyTempstResults function
If folder /root/rally_reports exists it will cause error in salt
run. To avoid it we can call the 'mkdir' with -p flag.
Closes-bug: PROD-17854
Change-Id: Ie5fff7a6470a50cdd7b16a81523837530849d78b
diff --git a/src/com/mirantis/mk/Test.groovy b/src/com/mirantis/mk/Test.groovy
index 5a192d3..a7bacb1 100644
--- a/src/com/mirantis/mk/Test.groovy
+++ b/src/com/mirantis/mk/Test.groovy
@@ -143,7 +143,7 @@
def copyTempestResults(master, target) {
def salt = new com.mirantis.mk.Salt()
if (! target.contains('cfg')) {
- salt.cmdRun(master, target, "mkdir /root/rally_reports/ && rsync -av /root/rally_reports/ cfg01:/root/rally_reports/")
+ salt.cmdRun(master, target, "mkdir -p /root/rally_reports/ && rsync -av /root/rally_reports/ cfg01:/root/rally_reports/")
}
}