ClickHouse/tests/queries/0_stateless/01526_client_start_and_exit.expect
Alexey Milovidov 8cc463f549 Better test
2020-10-25 05:31:58 +03:00

13 lines
260 B
Plaintext
Executable File

#!/usr/bin/expect -f
log_user 1
set timeout 5
match_max 100000
if ![info exists env(CLICKHOUSE_PORT_TCP)] {set env(CLICKHOUSE_PORT_TCP) 9000}
spawn bash -c "clickhouse-client --port $env(CLICKHOUSE_PORT_TCP) && echo $?"
expect ":) "
send -- "\4"
expect eof