This commit is contained in:
Mark Harrah 2009-12-30 15:21:40 -05:00
parent 821f874409
commit 8e289a262a
1 changed files with 3 additions and 1 deletions

View File

@ -355,7 +355,8 @@ trait MultiTaskProject extends Project
task { tests =>
val (testNames, separator :: testArgs) = tests.toList.span(! _.startsWith("--"))
val (testNames, separatorAndArgs) = tests.toList.span(! _.startsWith("--"))
val testArgs = separatorAndArgs.drop(1)
def filterInclude =
{
@ -372,6 +373,7 @@ trait MultiTaskProject extends Project
val includeTestsSet = Set(includeTests: _*)
(test: String) => includeTestsSet.contains(test) || testFilters.exists(_.accept(test))
}
val includeFunction =
if(testNames.isEmpty)
(test: String) => true