ClickHouse/tests/queries/0_stateless/01526_client_start_and_exit.expect

13 lines
260 B
Plaintext
Raw Normal View History

2020-10-16 00:38:32 +00:00
#!/usr/bin/expect -f
2020-10-25 02:31:58 +00:00
log_user 1
2020-10-16 00:38:32 +00:00
set timeout 5
match_max 100000
if ![info exists env(CLICKHOUSE_PORT_TCP)] {set env(CLICKHOUSE_PORT_TCP) 9000}
2020-10-25 02:31:58 +00:00
spawn bash -c "clickhouse-client --port $env(CLICKHOUSE_PORT_TCP) && echo $?"
2020-10-16 00:38:32 +00:00
expect ":) "
send -- "\4"
expect eof