Grab e2e test output to cfg node
Change-Id: Ifd34463bde6a8aefb7b998c8799bfc792cb0d7bb
diff --git a/src/com/mirantis/mk/Test.groovy b/src/com/mirantis/mk/Test.groovy
index c212c61..9d239d2 100644
--- a/src/com/mirantis/mk/Test.groovy
+++ b/src/com/mirantis/mk/Test.groovy
@@ -14,5 +14,16 @@
*/
def runConformanceTests(master, k8s_api, image) {
def salt = new com.mirantis.mk.Salt()
- salt = runSaltProcessStep(master, 'ctl01*', 'cmd.run', ["docker run --rm --net=host -e API_SERVER=${k8s_api} ${image} >> e2e-conformance.log"])
-}
\ No newline at end of file
+ salt.runSaltProcessStep(master, 'ctl01*', 'cmd.run', ["docker run --rm --net=host -e API_SERVER=${k8s_api} ${image} >> ${image}.output"])
+}
+
+/**
+ * Copy test output to cfg node
+ *
+ * @param image Docker image with tests
+ */
+def copyTestsOutput(master, image) {
+ def salt = new com.mirantis.mk.Salt()
+ salt.runSaltProcessStep(master, 'cfg01*', 'cmd.run', ["scp ctl01:/root/${image}.output /home/ubuntu/"])
+}
+