diff --git a/bats/arg-parsing.bats b/bats/arg-parsing.bats index 474b5e1d89..6855bbbe79 100644 --- a/bats/arg-parsing.bats +++ b/bats/arg-parsing.bats @@ -46,12 +46,13 @@ teardown() { dolt table import -fc test `batshelper 1pk5col-ints.csv` } -@test "dolt does not panic and returns error when empty string used with checkout" { +@test "dolt checkout with empty string returns error" { run dolt checkout "" - skip "Panics when attempting to checkout empty string" [[ "$output" =~ "error: cannot checkout empty string" ]] || false - [ $status -eq 2 ] + skip "Panics when attempting to checkout empty string" + [[ "$output" =~ "error: cannot checkout empty string" ]] || false + [ $status -ne 0 ] run dolt checkout -b "" [[ "$output" =~ "error: cannot checkout empty string" ]] || false - [ $status -eq 2 ] + [ $status -ne 0 ] }