mirror of https://github.com/sbt/sbt.git
Fix test quick
This commit is contained in:
parent
18ef703386
commit
f8ef449789
|
|
@ -512,16 +512,26 @@ object Defaults extends BuildCommon {
|
|||
val stamps = collection.mutable.Map.empty[String, Long]
|
||||
def stamp(dep: String): Long = {
|
||||
val stamps = for (a <- ans) yield intlStamp(dep, a, Set.empty)
|
||||
if (stamps.isEmpty) Long.MinValue else stamps.max
|
||||
if (stamps.isEmpty) Long.MinValue
|
||||
else stamps.max
|
||||
}
|
||||
def intlStamp(c: String, analysis: Analysis, s: Set[String]): Long = {
|
||||
if (s contains c) Long.MinValue else
|
||||
stamps.getOrElseUpdate(c, {
|
||||
if (s contains c) Long.MinValue
|
||||
else {
|
||||
val x = {
|
||||
import analysis.{ relations => rel, apis }
|
||||
rel.internalClassDeps(c).map(intlStamp(_, analysis, s + c)) ++
|
||||
rel.externalDeps(c).map(stamp) +
|
||||
apis.internal(c).compilation.startTime
|
||||
}.max)
|
||||
(apis.internal.get(c) match {
|
||||
case Some(x) => x.compilation.startTime
|
||||
case _ => Long.MinValue
|
||||
})
|
||||
}.max
|
||||
if (x != Long.MinValue) {
|
||||
stamps(c) = x
|
||||
}
|
||||
x
|
||||
}
|
||||
}
|
||||
def noSuccessYet(test: String) = succeeded.get(test) match {
|
||||
case None => true
|
||||
|
|
|
|||
|
|
@ -1,6 +1,9 @@
|
|||
lazy val root = (project in file(".")).
|
||||
settings(
|
||||
scalaVersion := "2.10.6",
|
||||
libraryDependencies += "org.scalatest" %% "scalatest" % "1.9.1" % Test,
|
||||
scalaVersion := "2.11.8",
|
||||
libraryDependencies ++= List(
|
||||
"org.scala-lang.modules" %% "scala-xml" % "1.0.1",
|
||||
"org.scalatest" %% "scalatest" % "2.2.6"
|
||||
),
|
||||
parallelExecution in test := false
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in New Issue