mirror of
https://github.com/dolthub/dolt.git
synced 2025-12-30 16:12:39 -06:00
/bats/arg-parsing.bats: Fix based on PR requested changes
This commit is contained in:
@@ -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 ]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user