mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-23 16:12:01 +00:00
fix test
This commit is contained in:
parent
01ece14035
commit
66ac187b7c
@ -7,6 +7,6 @@ CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
||||
|
||||
# We will check that the server's exit code corresponds to the exception code if it was terminated after exception.
|
||||
# In this example, we provide an invalid path to the server's config, ignore its logs and check the exit code.
|
||||
# The exception code is 400 = CANNOT_STAT, so the exit code will be 400 % 256.
|
||||
# The exception code is 76 = CANNOT_OPEN_FILE, so the exit code will be 76 % 256.
|
||||
|
||||
${CLICKHOUSE_SERVER_BINARY} -- --path /dev/null 2>/dev/null; [[ "$?" == "$((400 % 256))" ]] && echo 'Ok' || echo 'Fail'
|
||||
${CLICKHOUSE_SERVER_BINARY} -- --path /dev/null 2>/dev/null; [[ "$?" == "$((76 % 256))" ]] && echo 'Ok' || echo 'Fail'
|
||||
|
Loading…
Reference in New Issue
Block a user