-
Notifications
You must be signed in to change notification settings - Fork 883
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Encapsulate runner output cleanup into single script
- Loading branch information
1 parent
8d29760
commit 049714c
Showing
4 changed files
with
34 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -u | ||
set -e | ||
|
||
RUNNER=${1:-""} | ||
|
||
sed -e '/<exclude_from_test>/,/<\/exclude_from_test>/d' \ | ||
-e 's! Memory: [0-9]\{1,\}kB!!' \ | ||
-e 's! Memory Usage: [0-9]\{1,\}kB!!' \ | ||
-e 's! Average Peak Memory: [0-9]\{1,\}kB!!' | \ | ||
grep -v 'DEBUG: rehashing catalog cache id' | \ | ||
grep -v 'DEBUG: compacted fsync request queue from' | \ | ||
grep -v 'DEBUG: creating and filling new WAL file' | \ | ||
grep -v 'DEBUG: done creating and filling new WAL file' | \ | ||
grep -v 'DEBUG: flushed relation because a checkpoint occurred concurrently' | \ | ||
grep -v 'NOTICE: cancelling the background worker for job' | \ | ||
if [ "${RUNNER}" = "shared" ]; then \ | ||
sed -e '/^-\{1,\}$/d' \ | ||
-e 's!_[0-9]\{1,\}_[0-9]\{1,\}_chunk!_X_X_chunk!g' \ | ||
-e 's!^ \{1,\}QUERY PLAN \{1,\}$!QUERY PLAN!'; \ | ||
else \ | ||
cat; \ | ||
fi | \ | ||
if [ "${RUNNER}" = "isolation" ]; then \ | ||
sed -e 's!_[0-9]\{1,\}_[0-9]\{1,\}_chunk!_X_X_chunk!g' \ | ||
-e 's!hypertable_[0-9]\{1,\}!hypertable_X!g'; \ | ||
else \ | ||
cat; \ | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters