This repository was archived by the owner on Sep 8, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +10
-8
lines changed
src/main/scala/scala/tools/partest/sbt Expand file tree Collapse file tree 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,
6464 javacCmdPath = Option (javacCmd).map(_.getAbsolutePath) getOrElse PartestDefaults .javacCmd,
6565 scalacExtraArgs = scalacArgs,
6666 javaOpts = javaOpts,
67- scalacOpts = scalacOpts) {
67+ scalacOpts = scalacOpts) { self =>
6868
6969 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+ }
7779 result
7880 }
7981 }
You can’t perform that action at this time.
0 commit comments