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:
Zach Musgrave
2019-08-05 10:26:59 -07:00
parent 2a6f288ec2
commit 2633a1e73c

View File

@@ -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
}