/bats/arg-parsing.bats: Fix based on PR requested changes

This commit is contained in:
Dustin Brown
2020-04-23 14:34:04 -07:00
parent 132db31337
commit 0f9e6eeb49

View File

@@ -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 ]
}