Add cat function
Will be used to store tests results on host without ssh
Change-Id: I83503ecd276d0a68a656dba1fccf4c2eb5c06efa
diff --git a/src/com/mirantis/mk/Test.groovy b/src/com/mirantis/mk/Test.groovy
index 702fb76..90ed2f8 100644
--- a/src/com/mirantis/mk/Test.groovy
+++ b/src/com/mirantis/mk/Test.groovy
@@ -52,7 +52,11 @@
}
-/**
- * Upload results to testrail
+/** Store tests results on host
*
- */
\ No newline at end of file
+ * @param image Docker image name
+ */
+def catTestsOutput(master, image) {
+ def salt = new com.mirantis.mk.Salt()
+ salt.runSaltProcessStep(master, 'cfg01*', 'cmd.run', ["cat /home/ubuntu/${image}.output"])
+}