diff --git a/integration-tests/bats/sql.bats b/integration-tests/bats/sql.bats index cdc639e774..181cf547b0 100755 --- a/integration-tests/bats/sql.bats +++ b/integration-tests/bats/sql.bats @@ -596,6 +596,13 @@ SQL [ "$status" -eq 0 ] [[ "$output" =~ "dolt_repo" ]] || false + run dolt sql -q "show databases" + [ "$status" -eq 0 ] + [[ "$output" =~ "dolt_repo" ]] || false + [[ "$output" =~ "test1" ]] || false + [[ "$output" =~ "test2" ]] || false + [[ "$output" =~ "information_schema" ]] || false + touch existing_file mkdir existing_dir @@ -608,6 +615,39 @@ SQL [[ "$output" =~ "exists" ]] || false } +@test "sql: run outside a dolt directory" { + skip "Doesn't work yet" + + mkdir new && cd new + dolt sql + + dolt sql --disable-batch <