File tree 1 file changed +7
-4
lines changed
compiler/test/dotty/tools/dotc/reporting
1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -84,10 +84,13 @@ 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 df0 = new SimpleDateFormat (" yyyy-MM-dd" )
88
+ val df1 = new SimpleDateFormat (" yyyy-MM-dd-HH:mm:ss" )
89
+ val timestamp0 = df0.format(new Date )
90
+ val timestamp = df1.format(new Date )
91
+ val folder = s " ../testlogs/tests- $timestamp0"
92
+ new JFile (folder).mkdirs()
93
+ outFile = new JFile (s " $folder/tests- $timestamp.log " )
91
94
logWriter = new PrintWriter (new FileOutputStream (outFile, true ))
92
95
}
93
96
You can’t perform that action at this time.
0 commit comments