From 485eff717588dd8460138f464a24a55e92e26b29 Mon Sep 17 00:00:00 2001 From: Alejandra Ferreiro Vidal Date: Wed, 31 Jan 2018 17:17:01 +0100 Subject: [PATCH] bugfix absolute path --- test/groovy/MTABuildTest.groovy | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/groovy/MTABuildTest.groovy b/test/groovy/MTABuildTest.groovy index acffca8c8..100aa8969 100644 --- a/test/groovy/MTABuildTest.groovy +++ b/test/groovy/MTABuildTest.groovy @@ -120,12 +120,13 @@ public class MTABuildTest extends BasePipelineTest { binding.getVariable('env')['MTA_JAR_LOCATION'] = '/opt/mta' def newDirName = 'newDir' - def newDir = new File("${currentDir}/${newDirName}") + def newDirPath = "${currentDir}/${newDirName}" + def newDir = new File(newDirPath) newDir.mkdirs() new File(newDir, 'mta.yaml') << defaultMtaYaml() - helper.registerAllowedMethod('pwd', [], { newDir } ) + helper.registerAllowedMethod('pwd', [], { newDirPath } ) def mtarFilePath = mtaBuildScript.call(script: [commonPipelineEnvironment: cpe], buildTarget: 'NEO')