Skip to content

Commit 8f1d1a8

Browse files
committed
Tweak number of processes for run tests
1 parent f974707 commit 8f1d1a8

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class BootstrappedOnlyCompilationTests extends ParallelTesting {
2222
// Test suite configuration --------------------------------------------------
2323

2424
def maxDuration = 60.seconds
25-
def numberOfSlaves = 5
25+
def numberOfSlaves = Runtime.getRuntime().availableProcessors()
2626
def safeMode = Properties.testsSafeMode
2727
def isInteractive = SummaryReport.isInteractive
2828
def testFilter = Properties.testsFilter

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ object CompilationTests extends ParallelTesting {
328328
// Test suite configuration --------------------------------------------------
329329

330330
def maxDuration = 45.seconds
331-
def numberOfSlaves = 5
331+
def numberOfSlaves = Runtime.getRuntime().availableProcessors()
332332
def safeMode = Properties.testsSafeMode
333333
def isInteractive = SummaryReport.isInteractive
334334
def testFilter = Properties.testsFilter

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ object FromTastyTests extends ParallelTesting {
4141
// Test suite configuration --------------------------------------------------
4242

4343
def maxDuration = 30.seconds
44-
def numberOfSlaves = 5
44+
def numberOfSlaves = Runtime.getRuntime().availableProcessors()
4545
def safeMode = Properties.testsSafeMode
4646
def isInteractive = SummaryReport.isInteractive
4747
def testFilter = Properties.testsFilter

0 commit comments

Comments
 (0)