mirror of
https://github.com/dolthub/dolt.git
synced 2026-04-24 03:16:12 -05:00
16 lines
601 B
Plaintext
Executable File
16 lines
601 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 " shoW warNinGs ; \r"; }
|
|
|
|
expect_with_defaults_2 {Empty set} {dolt-repo-.*} { send "select 1/0;\r"; }
|
|
|
|
expect_with_defaults {dolt-repo-.*} { send " shoW warNinGs ; \r"; }
|
|
|
|
expect_with_defaults_2 {Division by 0 } {dolt-repo-.*} { send "exit;\r"; } |