File tree 1 file changed +10
-8
lines changed
src/partest/scala/tools/partest/sbt 1 file changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -64,16 +64,18 @@ class SBTRunner(val config: RunnerSpec.Config,
64
64
javacCmdPath = Option (javacCmd).map(_.getAbsolutePath) getOrElse PartestDefaults .javacCmd,
65
65
scalacExtraArgs = scalacArgs,
66
66
javaOpts = javaOpts,
67
- scalacOpts = scalacOpts) {
67
+ scalacOpts = scalacOpts) { self =>
68
68
69
69
override def onFinishTest (testFile : File , result : TestState ): TestState = {
70
- eventHandler.handle(new Event {
71
- def fullyQualifiedName : String = testFile.testIdent
72
- def fingerprint : Fingerprint = partestFingerprint
73
- def selector : Selector = new TestSelector (testFile.testIdent)
74
- val (status, throwable) = makeStatus(result)
75
- def duration : Long = - 1
76
- })
70
+ self.synchronized {
71
+ eventHandler.handle(new Event {
72
+ def fullyQualifiedName : String = testFile.testIdent
73
+ def fingerprint : Fingerprint = partestFingerprint
74
+ def selector : Selector = new TestSelector (testFile.testIdent)
75
+ val (status, throwable) = makeStatus(result)
76
+ def duration : Long = - 1
77
+ })
78
+ }
77
79
result
78
80
}
79
81
}
You can’t perform that action at this time.
0 commit comments