aboutsummaryrefslogtreecommitdiff
path: root/stage2/BasicBuild.scala
diff options
context:
space:
mode:
authorChristopher Vogt <oss.nsp@cvogt.org>2016-04-27 09:41:55 -0400
committerChristopher Vogt <oss.nsp@cvogt.org>2016-04-28 13:34:01 -0400
commitb54f3fd4c4d9601a5f5bfc6d4ed881a15f37a472 (patch)
treea12be76a1b6c5cc5a5134356228106cecbeced24 /stage2/BasicBuild.scala
parent373a16fef9dd00dbbd9b1fa973c1bd5f51994fc6 (diff)
downloadcbt-b54f3fd4c4d9601a5f5bfc6d4ed881a15f37a472.tar.gz
cbt-b54f3fd4c4d9601a5f5bfc6d4ed881a15f37a472.tar.bz2
cbt-b54f3fd4c4d9601a5f5bfc6d4ed881a15f37a472.zip
only run tests if there are actually tests to run (useful for recursively running tests in nested projects)
Diffstat (limited to 'stage2/BasicBuild.scala')
-rw-r--r--stage2/BasicBuild.scala4
1 files changed, 3 insertions, 1 deletions
diff --git a/stage2/BasicBuild.scala b/stage2/BasicBuild.scala
index b489947..65db8a4 100644
--- a/stage2/BasicBuild.scala
+++ b/stage2/BasicBuild.scala
@@ -139,7 +139,9 @@ class Build(val context: Context) extends Dependency with TriggerLoop with SbtDe
def runClass: String = "Main"
def run: ExitCode = lib.runMainIfFound( runClass, context.args, classLoader(context.classLoaderCache) )
- def test: ExitCode = lib.test(context)
+ def test: Option[ExitCode] = {
+ lib.test(context)
+ }
/*
context.logger.composition(">"*80)