mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-10 01:25:21 +00:00
Remove expert-level grep usages.
This commit is contained in:
parent
36f4d30820
commit
22fcabd229
@ -1132,8 +1132,8 @@ do
|
||||
{
|
||||
# The second grep is a heuristic for error messages like
|
||||
# "socket.timeout: timed out".
|
||||
rg -h -m2 -i '\(Exception\|Error\):[^:]' "$log" \
|
||||
|| rg -h -m2 -i '^[^ ]\+: ' "$log" \
|
||||
rg -no-filename --max-count=2 -i '\(Exception\|Error\):[^:]' "$log" \
|
||||
|| rg -no-filename --max-count=2 -i '^[^ ]\+: ' "$log" \
|
||||
|| head -2 "$log"
|
||||
} | sed "s/^/$test\t/" >> run-errors.tsv ||:
|
||||
done
|
||||
|
Loading…
Reference in New Issue
Block a user