Skip to content

Commit cf4b22a

Browse files
committed
Move testOnlyFiltered just above where it is used
1 parent c10db17 commit cf4b22a

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

project/Build.scala

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -433,6 +433,15 @@ object Build {
433433
case BootstrappedOptimised => `dotty-doc-optimised`
434434
}
435435

436+
def testOnlyFiltered(test: String, options: String) = Def.inputTaskDyn {
437+
val args = spaceDelimited("<arg>").parsed
438+
val cmd = s" $test -- $options" + {
439+
if (args.nonEmpty) " -Ddotty.tests.filter=" + args.mkString(" ")
440+
else ""
441+
}
442+
(testOnly in Test).toTask(cmd)
443+
}
444+
436445
// Settings shared between dotty-compiler and dotty-compiler-bootstrapped
437446
lazy val commonDottyCompilerSettings = Seq(
438447

@@ -1234,13 +1243,4 @@ object Build {
12341243
case BootstrappedOptimised => commonOptimisedSettings
12351244
})
12361245
}
1237-
1238-
def testOnlyFiltered(test: String, options: String) = Def.inputTaskDyn {
1239-
val args = spaceDelimited("<arg>").parsed
1240-
val cmd = s" $test -- $options" + {
1241-
if (args.nonEmpty) " -Ddotty.tests.filter=" + args.mkString(" ")
1242-
else ""
1243-
}
1244-
(testOnly in Test).toTask(cmd)
1245-
}
12461246
}

0 commit comments

Comments
 (0)