From 5e44ec7c534c90af54827339e5235188bf1c351c Mon Sep 17 00:00:00 2001 From: jvican Date: Tue, 2 May 2017 20:56:07 +0200 Subject: [PATCH] Fix string-to-command to ignore existing commands The scripted batch executor injects a command and the operation performed in this test checks all the commands, assuming only `noop` is declared. --- sbt/src/sbt-test/actions/command-to-string/build.sbt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sbt/src/sbt-test/actions/command-to-string/build.sbt b/sbt/src/sbt-test/actions/command-to-string/build.sbt index 00aeb8a65..8dc3e9a93 100644 --- a/sbt/src/sbt-test/actions/command-to-string/build.sbt +++ b/sbt/src/sbt-test/actions/command-to-string/build.sbt @@ -1,6 +1,6 @@ commands += Command.command("noop") { s => s } TaskKey[Unit]("check") := { - assert(commands.value.toString() == "List(SimpleCommand(noop))", - s"""commands should display "List(SimpleCommand(noop))" but is ${commands.value}""") + assert(commands.value.toString().contains("SimpleCommand(noop)"), + s"""commands should contain "SimpleCommand(noop)" in ${commands.value}""") }