mirror of
https://github.com/dolthub/dolt.git
synced 2026-01-13 18:49:55 -06:00
19 lines
445 B
Plaintext
Executable File
19 lines
445 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-[0-9]+/main\*>} { send "create database anewdb;\r" }
|
|
|
|
expect_with_defaults_2 {Query OK, 1 row affected} {dolt-repo-[0-9]+/main\*> } { send "use anewdb;\r" }
|
|
|
|
expect_with_defaults_2 {Database Changed} {anewdb/main> } { send "quit\r" }
|
|
|
|
expect eof
|
|
exit
|
|
|