mirror of
https://github.com/dolthub/dolt.git
synced 2026-01-14 10:25:59 -06:00
19 lines
596 B
Plaintext
Executable File
19 lines
596 B
Plaintext
Executable File
#!/usr/bin/expect
|
|
|
|
set timeout 5
|
|
set env(NO_COLOR) 1
|
|
|
|
source "$env(BATS_CWD)/helper/common_expect_functions.tcl"
|
|
|
|
spawn dolt sql
|
|
|
|
expect_with_defaults {dolt-repo-.*>} { send "select 1/0;\r"; }
|
|
|
|
expect_with_defaults_2 {Warning \(Code 1365\): Division by 0} {dolt-repo-.*>} { send "\\w\r"; }
|
|
|
|
expect_with_defaults_2 {Show warnings disabled} {dolt-repo-.*>} { send "select 1/0,1/0;\r"; }
|
|
|
|
expect_with_defaults {dolt-repo-.*>} { send "quit;\r"; }
|
|
|
|
expect eof
|
|
exit |