mirror of
https://github.com/dolthub/dolt.git
synced 2026-05-02 19:39:56 -05:00
Fixed more tests
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user