Skip to content

Commit

Permalink
fix(code-coverage): Ensure awk prints (Postgres)
Browse files Browse the repository at this point in the history
  • Loading branch information
RasmusSkytte committed Feb 7, 2024
1 parent 2703ac4 commit 0ef6f62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/code-coverage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ jobs:
## --------------------------------------------------------------------
log=$(find ./logs-docs/ -name 'postgres*.log')
awk '/ERROR:|STATEMENT:/{flag=1;next}/LOG:|^[^ ]|^ $/{flag=0}flag' $log
awk '/ERROR:|STATEMENT:/{flag=1;next}/LOG:|^[^ ]|^ $/{flag=0}flag && {print $0}' $log
# Throw errors on ERRORs
grep -qv "ERROR" $log || { echo "PostgreSQL backend threw ERRORs"; exit 1; }
Expand Down

0 comments on commit 0ef6f62

Please sign in to comment.