mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 08:32:02 +00:00
Merge pull request #46857 from azat/tests/final-expect-fixes
Final fixes for expect tests
This commit is contained in:
commit
1a604f834c
@ -21,10 +21,12 @@ expect ":) "
|
||||
# Make a query
|
||||
send -- "SELECT 'print query id'\r"
|
||||
expect {
|
||||
"Query id: *" { }
|
||||
# (?n) - Do not match new lines [1]
|
||||
# [1]: https://www.tcl.tk/man/tcl8.6/TclCmd/re_syntax.html
|
||||
-re "(?n)Query id: .*" { }
|
||||
timeout { exit 1 }
|
||||
}
|
||||
expect "print query id"
|
||||
expect "'print query id"
|
||||
expect ":) "
|
||||
|
||||
send -- "\4"
|
||||
|
@ -19,9 +19,9 @@ expect_after {
|
||||
|
||||
spawn bash -c "source $basedir/../shell_config.sh ; \$CLICKHOUSE_CLIENT_BINARY \$CLICKHOUSE_CLIENT_OPT --disable_suggestion --history_file=$history_file"
|
||||
|
||||
expect -re "ClickHouse client version \[\\d\]{2}.\[\\d\]{1,2}.\[\\d\]{1,2}.\[\\d\]{1,2}.\r"
|
||||
expect -re "Connecting to database .* at localhost:9000 as user default.\r"
|
||||
expect -re "Connected to ClickHouse server version \[\\d\]{2}.\[\\d\]{1,2}.\[\\d\]{1,2} revision .*\r"
|
||||
expect -re "ClickHouse client version \[\\d\]{2}\.\[\\d\]{1,2}\.\[\\d\]{1,2}\.\[\\d\]{1,}\.\r"
|
||||
expect -re "Connecting to database .* at localhost:9000 as user default\.\r"
|
||||
expect -re "Connected to ClickHouse server version \[\\d\]{2}\.\[\\d\]{1,2}\.\[\\d\]{1,2} revision \[\\d\]{1,}\.\r"
|
||||
expect ":) "
|
||||
|
||||
send -- ""
|
||||
|
Loading…
Reference in New Issue
Block a user