mirror of https://github.com/sbt/sbt.git
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:
parent
e01f5f5ef1
commit
5e44ec7c53
|
|
@ -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}""")
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue