File tree 3 files changed +7
-1
lines changed
3 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,8 @@ import dotty.tools.dotc.ParallelTesting
4
4
5
5
object comptest extends ParallelTesting {
6
6
7
+ def interactive : Boolean = true
8
+
7
9
implicit val defaultOutputDir : String = " ."
8
10
9
11
val posDir = " ./tests/pos/"
Original file line number Diff line number Diff line change @@ -8,6 +8,8 @@ import java.io.{ File => JFile }
8
8
class CompilationTests extends ParallelTesting {
9
9
import CompilationTests ._
10
10
11
+ def interactive : Boolean = ! sys.env.contains(" DRONE" )
12
+
11
13
// Positive tests ------------------------------------------------------------
12
14
13
15
@ Test def compilePos : Unit = {
Original file line number Diff line number Diff line change @@ -20,6 +20,8 @@ import java.util.HashMap
20
20
21
21
trait ParallelTesting {
22
22
23
+ def interactive : Boolean
24
+
23
25
private sealed trait Target { self =>
24
26
def outDir : JFile
25
27
def flags : Array [String ]
@@ -128,7 +130,7 @@ trait ParallelTesting {
128
130
case None => JExecutors .newWorkStealingPool()
129
131
}
130
132
131
- pool.submit(statusRunner)
133
+ if (interactive) pool.submit(statusRunner)
132
134
133
135
targets.foreach { target =>
134
136
pool.submit(compilationRunnable(target))
You can’t perform that action at this time.
0 commit comments