From 0f9e6eeb49f4b3c6fdb58423ffa04c07f44cd16e Mon Sep 17 00:00:00 2001 From: Dustin Brown Date: Thu, 23 Apr 2020 14:34:04 -0700 Subject: [PATCH] /bats/arg-parsing.bats: Fix based on PR requested changes --- bats/arg-parsing.bats | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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 ] }