Skip to content

Commit 7929053

Browse files
committed
Disable interactive mode in CI
1 parent f16184d commit 7929053

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

compiler/test/dotc/comptest.scala

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ import dotty.tools.dotc.ParallelTesting
44

55
object comptest extends ParallelTesting {
66

7+
def interactive: Boolean = true
8+
79
implicit val defaultOutputDir: String = "."
810

911
val posDir = "./tests/pos/"

compiler/test/dotty/tools/dotc/CompilationTests.scala

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ import java.io.{ File => JFile }
88
class CompilationTests extends ParallelTesting {
99
import CompilationTests._
1010

11+
def interactive: Boolean = !sys.env.contains("DRONE")
12+
1113
// Positive tests ------------------------------------------------------------
1214

1315
@Test def compilePos: Unit = {

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ import java.util.HashMap
2020

2121
trait ParallelTesting {
2222

23+
def interactive: Boolean
24+
2325
private sealed trait Target { self =>
2426
def outDir: JFile
2527
def flags: Array[String]
@@ -128,7 +130,7 @@ trait ParallelTesting {
128130
case None => JExecutors.newWorkStealingPool()
129131
}
130132

131-
pool.submit(statusRunner)
133+
if (interactive) pool.submit(statusRunner)
132134

133135
targets.foreach { target =>
134136
pool.submit(compilationRunnable(target))

0 commit comments

Comments
 (0)