Added property to configure the number of actors used
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@13952 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
This commit is contained in:
parent
4b9a527551
commit
4ca457b21a
|
@ -13,6 +13,8 @@ object NestRunner {
|
|||
private val version = System.getProperty("java.version", "")
|
||||
private val isJava5 = version matches "1.[5|6|7].*"
|
||||
|
||||
private val numActors = Integer.parseInt(System.getProperty("scalatest.actors", "8"))
|
||||
|
||||
private var posCheck = false
|
||||
private var negCheck = false
|
||||
private var jvmCheck = false
|
||||
|
@ -140,7 +142,6 @@ object NestRunner {
|
|||
if (!kindFiles.isEmpty) {
|
||||
NestUI.outline("\n"+msg+"\n")
|
||||
|
||||
val numActors = 4
|
||||
val len = kindFiles.length
|
||||
val (testsEach, lastFrag) = (len/numActors, len%numActors)
|
||||
val last = numActors-1
|
||||
|
|
Loading…
Reference in New Issue