From 6ebad1cffca279aae134202c8e977bb5f0641ed1 Mon Sep 17 00:00:00 2001 From: Eric Peters Date: Wed, 16 Oct 2019 06:23:30 -0700 Subject: [PATCH] Add a test for -D arguments (e.g. -Dsbt.supershell=false) --- integration-test/src/test/scala/RunnerTest.scala | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/integration-test/src/test/scala/RunnerTest.scala b/integration-test/src/test/scala/RunnerTest.scala index eaec670f0..655eeb661 100755 --- a/integration-test/src/test/scala/RunnerTest.scala +++ b/integration-test/src/test/scala/RunnerTest.scala @@ -62,6 +62,12 @@ object SbtRunnerTest extends SimpleTestSuite with PowerAssertions { () } + test("sbt -D arguments") { + val out = sbtProcess("-Dsbt.supershell=false compile -v").!!.linesIterator.toList + assert(out.contains[String]("-Dsbt.supershell=false")) + () + } + test("sbt --sbt-version") { val out = sbtProcess("--sbt-version 1.3.0 compile -v").!!.linesIterator.toList assert(out.contains[String]("-Dsbt.version=1.3.0"))