diff --git a/bats/sql-shell.bats b/bats/sql-shell.bats index 61edf887ca..593806789e 100644 --- a/bats/sql-shell.bats +++ b/bats/sql-shell.bats @@ -15,27 +15,9 @@ teardown() { rm -rf "$BATS_TMPDIR/dolt-repo-$$" } -@test "start a sql shell and exit using exit" { - skiponwindows "Works on Windows command prompt but not the WSL terminal used during bats" - run bash -c "echo exit | dolt sql" - [ $status -eq 0 ] - [[ "$output" =~ "# Welcome to the DoltSQL shell." ]] || false - [[ "$output" =~ "Bye" ]] || false -} - -@test "start a sql shell and exit using quit" { - skiponwindows "Works on Windows command prompt but not the WSL terminal used during bats" - run bash -c "echo quit | dolt sql" - [ $status -eq 0 ] - [[ "$output" =~ "# Welcome to the DoltSQL shell." ]] || false - [[ "$output" =~ "Bye" ]] || false -} - @test "run a query in sql shell" { skiponwindows "Works on Windows command prompt but not the WSL terminal used during bats" run bash -c "echo 'select * from test;' | dolt sql" [ $status -eq 0 ] - [[ "$output" =~ "# Welcome to the DoltSQL shell." ]] || false [[ "$output" =~ "pk" ]] || false - [[ "$output" =~ "Bye" ]] || false } \ No newline at end of file