From 16a3fb59199cf8062329271875afe7f1783cff21 Mon Sep 17 00:00:00 2001 From: Guillaume Martres Date: Fri, 23 Mar 2018 22:30:12 +0100 Subject: [PATCH] Fix #3373: Do not use colons in filenames, this breaks Windows --- compiler/test/dotty/tools/dotc/reporting/TestReporter.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/test/dotty/tools/dotc/reporting/TestReporter.scala b/compiler/test/dotty/tools/dotc/reporting/TestReporter.scala index 07aa7f9182db..4251f293b582 100644 --- a/compiler/test/dotty/tools/dotc/reporting/TestReporter.scala +++ b/compiler/test/dotty/tools/dotc/reporting/TestReporter.scala @@ -86,7 +86,7 @@ object TestReporter { private[this] def initLog() = if (logWriter eq null) { val date = new Date val df0 = new SimpleDateFormat("yyyy-MM-dd") - val df1 = new SimpleDateFormat("yyyy-MM-dd-HH:mm:ss") + val df1 = new SimpleDateFormat("yyyy-MM-dd-'T'HH-mm-ss") val folder = s"testlogs/tests-${df0.format(date)}" new JFile(folder).mkdirs() outFile = new JFile(s"$folder/tests-${df1.format(date)}.log")