Related to last checkin, need to create the directory when writing the yamlthe first time after an ant clean.

git-svn-id: file:///humgen/gsa-scr1/gsa-engineering/svn_contents/trunk@5127 348d0f76-0448-11de-a6fe-93d51630548a
This commit is contained in:
kshakir 2011-01-29 20:45:44 +00:00
parent 23578b7402
commit e19b5d17b4
1 changed files with 3 additions and 1 deletions

View File

@ -135,7 +135,9 @@ class FullCallingPipelineTest {
}
private def writeYaml(testName: String, pipeline: Pipeline) = {
val yamlFile = new File(PipelineTest.runDir(testName), pipeline.getProject.getName + ".yaml")
val runDir = PipelineTest.runDir(testName)
new File(runDir).mkdirs
val yamlFile = new File(runDir, pipeline.getProject.getName + ".yaml")
YamlUtils.dump(pipeline, yamlFile)
yamlFile
}