File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
compiler/test/dotty/tools/dotc/reporting Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -84,10 +84,12 @@ object TestReporter {
84
84
private [this ] var logWriter : PrintWriter = _
85
85
86
86
private [this ] def initLog () = if (logWriter eq null ) {
87
- val df = new SimpleDateFormat (" yyyy-MM-dd-HH:mm" )
88
- val timestamp = df.format(new Date )
89
- new JFile (" ../testlogs" ).mkdirs()
90
- outFile = new JFile (s " ../testlogs/tests- $timestamp.log " )
87
+ val date = new Date
88
+ val df0 = new SimpleDateFormat (" yyyy-MM-dd" )
89
+ val df1 = new SimpleDateFormat (" yyyy-MM-dd-HH:mm:ss" )
90
+ val folder = s " ../testlogs/tests- ${df0.format(date)}"
91
+ new JFile (folder).mkdirs()
92
+ outFile = new JFile (s " $folder/tests- ${df1.format(date)}.log " )
91
93
logWriter = new PrintWriter (new FileOutputStream (outFile, true ))
92
94
}
93
95
You can’t perform that action at this time.
0 commit comments