Add logdir parameter for tempest run

Change-Id: I21620cd619e24dc0104c76d0078f702a52b3b50a
diff --git a/src/com/mirantis/mk/Test.groovy b/src/com/mirantis/mk/Test.groovy
index e0148ee..ec5e7da 100644
--- a/src/com/mirantis/mk/Test.groovy
+++ b/src/com/mirantis/mk/Test.groovy
@@ -45,15 +45,17 @@
  *
  * @param dockerImageLink   Docker image link with rally and tempest
  * @param target            Host to run tests
- * @param pattern            If not false, will run only tests matched the pattern
+ * @param pattern           If not false, will run only tests matched the pattern
+ * @param logDir            Directory to store tempest/rally reports
  */
-def runTempestTests(master, dockerImageLink, target, pattern = "false") {
+def runTempestTests(master, dockerImageLink, target, pattern = "false", logDir = '/home/rally/rally_reports/') {
     def salt = new com.mirantis.mk.Salt()
     if (pattern == "false") {
         salt.cmdRun(master, "${target}", "docker run --rm --net=host " +
                                          "-e TEMPEST_CONF=mcp.conf " +
                                          "-e SKIP_LIST=mcp_skip.list " +
                                          "-e SOURCE_FILE=keystonercv3 " +
+                                         "-e LOG_DIR=${logDir}" +
                                          "-v /root/:/home/rally ${dockerImageLink} >> docker-tempest.log")
     }
     else {
@@ -61,6 +63,7 @@
                                          "-e TEMPEST_CONF=mcp.conf " +
                                          "-e SKIP_LIST=mcp_skip.list " +
                                          "-e SOURCE_FILE=keystonercv3 " +
+                                         "-e LOG_DIR=${logDir} " +
                                          "-e CUSTOM='--pattern ${pattern}' " +
                                          "-v /root/:/home/rally ${dockerImageLink} >> docker-tempest.log")
     }