aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelix Mulder <felix.mulder@gmail.com>2016-11-22 13:38:10 +0100
committerFelix Mulder <felix.mulder@gmail.com>2016-11-22 16:22:24 +0100
commite5bd55758a4a1fd95fb66a4938d213204adebae6 (patch)
treeca435782c123d12a1b764754beb401f583624bd5
parent5378076302de94d8db64d00652c89eeacbd2649c (diff)
downloaddotty-e5bd55758a4a1fd95fb66a4938d213204adebae6.tar.gz
dotty-e5bd55758a4a1fd95fb66a4938d213204adebae6.tar.bz2
dotty-e5bd55758a4a1fd95fb66a4938d213204adebae6.zip
increase threads to 2 in reduced threads cases
-rw-r--r--.drone.yml1
-rw-r--r--compiler/test/dotty/partest/DPConsoleRunner.scala6
2 files changed, 4 insertions, 3 deletions
diff --git a/.drone.yml b/.drone.yml
index 78fb0f454..1a1af8b88 100644
--- a/.drone.yml
+++ b/.drone.yml
@@ -10,3 +10,4 @@ matrix:
- test
- partest-only-no-bootstrap --show-diff --verbose
- partest-only --show-diff --verbose
+ - scripted
diff --git a/compiler/test/dotty/partest/DPConsoleRunner.scala b/compiler/test/dotty/partest/DPConsoleRunner.scala
index 06a36f661..363012683 100644
--- a/compiler/test/dotty/partest/DPConsoleRunner.scala
+++ b/compiler/test/dotty/partest/DPConsoleRunner.scala
@@ -105,9 +105,9 @@ extends SuiteRunner(testSourcePath, fileManager, updateCheck, failed, javaCmdPat
val seqResults =
if (!sequentialTests.isEmpty) {
val savedThreads = sys.props("partest.threads")
- sys.props("partest.threads") = "1"
+ sys.props("partest.threads") = "2"
- NestUI.echo(s"## we will run ${sequentialTests.length} tests sequentially")
+ NestUI.echo(s"## we will run ${sequentialTests.length} tests using ${PartestDefaults.numThreads} thread(s)")
val res = super.runTestsForFiles(sequentialTests, kind)
if (savedThreads != null)
@@ -120,7 +120,7 @@ extends SuiteRunner(testSourcePath, fileManager, updateCheck, failed, javaCmdPat
val parResults =
if (!parallelTests.isEmpty) {
- NestUI.echo(s"## we will run ${parallelTests.length} tests in parallel using ${PartestDefaults.numThreads} threads")
+ NestUI.echo(s"## we will run ${parallelTests.length} tests in parallel using ${PartestDefaults.numThreads} thread(s)")
super.runTestsForFiles(parallelTests, kind)
} else Array[TestState]()