Skip to content

Commit

Permalink
Fix variable scope in testLogging configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
devin-ai-integration[bot] committed May 22, 2024
1 parent 0dd97b3 commit b93c47c
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -374,17 +374,6 @@ allprojects {
exceptionFormat = 'full'
events "passed", "skipped", "failed"
outputs.upToDateWhen { false }
def logDir = new File("${buildDir}/test-logs")
if (!logDir.exists()) {
logDir.mkdirs()
println "Created test-logs directory: ${logDir.absolutePath}"
} else {
println "test-logs directory already exists: ${logDir.absolutePath}"
}
def logFile = new File(logDir, "test-output.log")
def outputStream = new FileOutputStream(logFile, true) // Append to the file
def printStream = new PrintStream(outputStream)
println "Created test-output.log file: ${logFile.absolutePath}"
standardOutput = printStream
standardError = printStream
}
Expand Down

0 comments on commit b93c47c

Please sign in to comment.