From 52eebe0f527befb090e308de730082475d63207b Mon Sep 17 00:00:00 2001 From: Allan Renucci Date: Wed, 11 Apr 2018 18:53:03 +0200 Subject: [PATCH] Fix tests report rendering bug introduced in #4294 --- compiler/test/dotty/tools/vulpix/ParallelTesting.scala | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/compiler/test/dotty/tools/vulpix/ParallelTesting.scala b/compiler/test/dotty/tools/vulpix/ParallelTesting.scala index edf8aa672fc0..9a3a2b093a57 100644 --- a/compiler/test/dotty/tools/vulpix/ParallelTesting.scala +++ b/compiler/test/dotty/tools/vulpix/ParallelTesting.scala @@ -295,16 +295,17 @@ trait ParallelTesting extends RunnerOrchestration { self => "[" + ("=" * (math.max(progress - 1, 0))) + (if (progress > 0) ">" else "") + (" " * (39 - progress)) + - s"] completed ($tCompiled/$sourceCount, $errorCount failed, ${timestamp}s))\r" + s"] completed ($tCompiled/$sourceCount, $errorCount failed, ${timestamp}s)\r" ) Thread.sleep(100) tCompiled = testSourcesCompleted } + + val timestamp = (System.currentTimeMillis - start) / 1000 // println, otherwise no newline and cursor at start of line realStdout.println( - s"[=======================================] completed ($sourceCount/$sourceCount, " + - s"${(System.currentTimeMillis - start) / 1000}s) " + s"[=======================================] completed ($sourceCount/$sourceCount, $errorCount failed, ${timestamp}s)" ) }