Skip to content

Commit cf846ac

Browse files
authored
Merge pull request #4296 from dotty-staging/test-report
Fix tests report rendering bug introduced in #4294
2 parents 4058393 + 52eebe0 commit cf846ac

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

compiler/test/dotty/tools/vulpix/ParallelTesting.scala

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -295,16 +295,17 @@ trait ParallelTesting extends RunnerOrchestration { self =>
295295
"[" + ("=" * (math.max(progress - 1, 0))) +
296296
(if (progress > 0) ">" else "") +
297297
(" " * (39 - progress)) +
298-
s"] completed ($tCompiled/$sourceCount, $errorCount failed, ${timestamp}s))\r"
298+
s"] completed ($tCompiled/$sourceCount, $errorCount failed, ${timestamp}s)\r"
299299
)
300300

301301
Thread.sleep(100)
302302
tCompiled = testSourcesCompleted
303303
}
304+
305+
val timestamp = (System.currentTimeMillis - start) / 1000
304306
// println, otherwise no newline and cursor at start of line
305307
realStdout.println(
306-
s"[=======================================] completed ($sourceCount/$sourceCount, " +
307-
s"${(System.currentTimeMillis - start) / 1000}s) "
308+
s"[=======================================] completed ($sourceCount/$sourceCount, $errorCount failed, ${timestamp}s)"
308309
)
309310
}
310311

0 commit comments

Comments
 (0)