ClickHouse/tests/queries/0_stateless/00834_dont_allow_to_set_two_configuration_files_in_client.sh

15 lines
388 B
Bash
Raw Normal View History

2019-02-02 15:32:21 +00:00
#!/usr/bin/env bash
2019-03-20 20:04:49 +00:00
CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
. $CURDIR/../shell_config.sh
OUTPUT=`$CLICKHOUSE_CLIENT_BINARY -c 1 -C 2 2>&1`
2019-02-02 15:32:21 +00:00
#test will fail if clickouse-client exit code is 0
if [ $? -eq 0 ]; then
exit 1
fi
#test will fail if no special error message was printed
grep "Two or more configuration files referenced in arguments" > /dev/null <<< "$OUTPUT"