Skip to content

Commit

Permalink
NonRegressionTest : when updating the callstack, create the parent di…
Browse files Browse the repository at this point in the history
…rectory if it does not exist
  • Loading branch information
equ authored and ozangunalp committed Aug 24, 2017
1 parent cb28420 commit 488fdd6
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ class RegressionTestHelper {

private static writeStackToFile(File referenceFile, PipelineTestHelper helper) {
println "Saving stack into ${referenceFile.path}"
if (!new File(referenceFile.parent).exists()) {
new File(referenceFile.parent).mkdirs()
}
referenceFile.withWriter { out ->
helper.callStack.each {
out.println(it)
Expand Down

0 comments on commit 488fdd6

Please sign in to comment.