Fixed more tests

This commit is contained in:
Zach Musgrave
2022-09-12 12:25:43 -07:00
parent 9f5ddd1ffb
commit 1c1a03e965
3 changed files with 8 additions and 7 deletions
+4 -3
View File
@@ -62,11 +62,11 @@ teardown() {
rm -rf .doltcfg
}
@test "sql-shell: run a query in sql shell" {
@test "sql-shell: pipe query text to 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"
run bash -c "echo 'show tables' | dolt sql"
[ $status -eq 0 ]
[[ "$output" =~ "pk" ]] || false
[[ "$output" =~ "test" ]] || false
}
@test "sql-shell: sql shell writes to disk after every iteration (autocommit)" {
@@ -792,6 +792,7 @@ SQL
[ $status -eq 0 ]
[[ "$output" =~ "$TESTSTR" ]] || false
dolt sql -q "SELECT * FROM test2" -r json
run dolt sql -q "SELECT * FROM test2" -r json
[ $status -eq 0 ]
[[ "$output" =~ "$TESTSTR" ]] || false