mirror of
https://github.com/dolthub/dolt.git
synced 2026-01-06 00:39:40 -06:00
Deleted interactive SQL shell tests -- most recent change detects TTY and runs in batch mode, so these no long make sense in this context
Signed-off-by: Zach Musgrave <zach@liquidata.co>
This commit is contained in:
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user