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.
This commit is contained in:
jvican 2017-05-02 20:56:07 +02:00
parent e01f5f5ef1
commit 5e44ec7c53
No known key found for this signature in database
GPG Key ID: 42DAFA0F112E8050
1 changed files with 2 additions and 2 deletions

View File

@ -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}""")
}