Remove expert-level grep usages.

This commit is contained in:
Alexey Milovidov 2023-01-07 00:57:11 +03:00 committed by GitHub
parent 36f4d30820
commit 22fcabd229
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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