Report error when arguments given to crio command
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
This commit is contained in:
parent
4c06116c18
commit
063b25cef5
2 changed files with 22 additions and 0 deletions
12
test/command.bats
Normal file
12
test/command.bats
Normal file
|
@ -0,0 +1,12 @@
|
|||
#!/usr/bin/env bats
|
||||
|
||||
load helpers
|
||||
|
||||
@test "crio commands" {
|
||||
run ${CRIO_BINARY} --config /dev/null config > /dev/null
|
||||
echo "$output"
|
||||
[ "$status" -eq 0 ]
|
||||
run ${CRIO_BINARY} badoption > /dev/null
|
||||
echo "$output"
|
||||
[ "$status" -ne 0 ]
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue