Fix pattern check
Check that pattern has a non-null and non-empty value.
Closes-bug: PROD-16573
Change-Id: I54728d60e918f13e18d617c1ff1de5ca5ed5bfca
diff --git a/src/com/mirantis/mk/Test.groovy b/src/com/mirantis/mk/Test.groovy
index 5632b2d..39a9c9f 100644
--- a/src/com/mirantis/mk/Test.groovy
+++ b/src/com/mirantis/mk/Test.groovy
@@ -55,14 +55,14 @@
* @param localKeystone Path to the keystonerc file in the local host
* @param localLogDir Path to local destination folder for logs
*/
-def runTempestTests(master, dockerImageLink, target, pattern = "false", logDir = "/home/rally/rally_reports/",
+def runTempestTests(master, dockerImageLink, target, pattern = "", logDir = "/home/rally/rally_reports/",
sourceFile="/home/rally/keystonercv3", set="full", concurrency="0", tempestConf="mcp.conf",
skipList="mcp_skip.list", localKeystone="/root/keystonercv3" , localLogDir="/root/rally_reports",
doCleanupResources = "false") {
def salt = new com.mirantis.mk.Salt()
salt.runSaltProcessStep(master, target, 'file.mkdir', ["${localLogDir}"])
def custom = ''
- if (pattern != "false") {
+ if (pattern) {
custom = "--pattern " + pattern
}
salt.cmdRun(master, "${target}", "docker run --rm --net=host " +