Skip to content

Commit e5bd557

Browse files
committed
increase threads to 2 in reduced threads cases
1 parent 5378076 commit e5bd557

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

.drone.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,4 @@ matrix:
1010
- test
1111
- partest-only-no-bootstrap --show-diff --verbose
1212
- partest-only --show-diff --verbose
13+
- scripted

compiler/test/dotty/partest/DPConsoleRunner.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,9 +105,9 @@ extends SuiteRunner(testSourcePath, fileManager, updateCheck, failed, javaCmdPat
105105
val seqResults =
106106
if (!sequentialTests.isEmpty) {
107107
val savedThreads = sys.props("partest.threads")
108-
sys.props("partest.threads") = "1"
108+
sys.props("partest.threads") = "2"
109109

110-
NestUI.echo(s"## we will run ${sequentialTests.length} tests sequentially")
110+
NestUI.echo(s"## we will run ${sequentialTests.length} tests using ${PartestDefaults.numThreads} thread(s)")
111111
val res = super.runTestsForFiles(sequentialTests, kind)
112112

113113
if (savedThreads != null)
@@ -120,7 +120,7 @@ extends SuiteRunner(testSourcePath, fileManager, updateCheck, failed, javaCmdPat
120120

121121
val parResults =
122122
if (!parallelTests.isEmpty) {
123-
NestUI.echo(s"## we will run ${parallelTests.length} tests in parallel using ${PartestDefaults.numThreads} threads")
123+
NestUI.echo(s"## we will run ${parallelTests.length} tests in parallel using ${PartestDefaults.numThreads} thread(s)")
124124
super.runTestsForFiles(parallelTests, kind)
125125
} else Array[TestState]()
126126

0 commit comments

Comments
 (0)