mirror of
https://github.com/dolthub/dolt.git
synced 2026-01-03 17:10:29 -06:00
This pr fixes a problem where autocommit was not turned on for every single iteration of the shell loop.
21 lines
374 B
Plaintext
Executable File
21 lines
374 B
Plaintext
Executable File
#!/usr/bin/expect
|
|
|
|
set timeout 1
|
|
spawn dolt sql
|
|
set id $spawn_id
|
|
|
|
expect -i id "doltsql> "
|
|
send -i id "CREATE TABLE test_expect (pk int primary key);\r"
|
|
|
|
expect -i id "doltsql> "
|
|
|
|
# spawn the second process
|
|
spawn dolt sql
|
|
set id2 $spawn_id
|
|
|
|
# Todo: Should this be a dolt ls instead ?
|
|
expect -i id2 "doltsql> "
|
|
send -i id2 "show tables;\r"
|
|
|
|
expect -i id eof
|
|
expect -i id2 eof |