mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-25 09:02:00 +00:00
Update check-style
This commit is contained in:
parent
3f7259f955
commit
2990cdfc6d
@ -224,7 +224,7 @@ find $ROOT_PATH'/tests/integration' -name '*.py' |
|
|||||||
xargs grep -F 'subprocess.check_call' | grep -v "STYLE_CHECK_ALLOW_SUBPROCESS_CHECK_CALL" && echo "Use helpers.cluster.run_and_check or subprocess.run instead of subprocess.check_call to print detailed info on error"
|
xargs grep -F 'subprocess.check_call' | grep -v "STYLE_CHECK_ALLOW_SUBPROCESS_CHECK_CALL" && echo "Use helpers.cluster.run_and_check or subprocess.run instead of subprocess.check_call to print detailed info on error"
|
||||||
|
|
||||||
# Forbid non-unique error codes
|
# Forbid non-unique error codes
|
||||||
if [[ "$(grep -Po "M\([0-9]*," $ROOT_PATH/src/Common/ErrorCodes.cpp | wc -l)" != "$(grep -Po "M\([0-9]*," $ROOT_PATH/src/Common/ErrorCodes.cpp | sort | uniq | wc -l)" ]]
|
if [[ "$(grep -Po "M\([0-9]*," $ROOT_PATH/src/Common/ErrorCodes.cpp | wc -l)" != "$(grep -Po "M\([0-9]*," $ROOT_PATH/src/Common/ErrorCodes.cpp | sort | uniq | wc -l)" ]]
|
||||||
then
|
then
|
||||||
echo "ErrorCodes.cpp contains non-unique error codes"
|
echo "ErrorCodes.cpp contains non-unique error codes"
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user