Skip to content

Commit

Permalink
Move testOnlyFiltered just above where it is used
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolasstucki committed May 31, 2018
1 parent c10db17 commit cf4b22a
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions project/Build.scala
Original file line number Diff line number Diff line change
Expand Up @@ -433,6 +433,15 @@ object Build {
case BootstrappedOptimised => `dotty-doc-optimised`
}

def testOnlyFiltered(test: String, options: String) = Def.inputTaskDyn {
val args = spaceDelimited("<arg>").parsed
val cmd = s" $test -- $options" + {
if (args.nonEmpty) " -Ddotty.tests.filter=" + args.mkString(" ")
else ""
}
(testOnly in Test).toTask(cmd)
}

// Settings shared between dotty-compiler and dotty-compiler-bootstrapped
lazy val commonDottyCompilerSettings = Seq(

Expand Down Expand Up @@ -1234,13 +1243,4 @@ object Build {
case BootstrappedOptimised => commonOptimisedSettings
})
}

def testOnlyFiltered(test: String, options: String) = Def.inputTaskDyn {
val args = spaceDelimited("<arg>").parsed
val cmd = s" $test -- $options" + {
if (args.nonEmpty) " -Ddotty.tests.filter=" + args.mkString(" ")
else ""
}
(testOnly in Test).toTask(cmd)
}
}

0 comments on commit cf4b22a

Please sign in to comment.