chore: enable pipefail in test and bench suite (#13124)
This commit is contained in:
parent
f0c999a668
commit
ea209d19e0
1 changed files with 3 additions and 1 deletions
|
|
@ -1,4 +1,4 @@
|
|||
set -e
|
||||
set -eo pipefail
|
||||
|
||||
ulimit -S -s ${TEST_STACK_SIZE:-8192}
|
||||
|
||||
|
|
@ -152,9 +152,11 @@ function normalize_measurements {
|
|||
}
|
||||
|
||||
function extract_measurements {
|
||||
set +o pipefail # grep will exit with 1 if there are no matches
|
||||
grep -E '^measurement: \S+ \S+( \S+)?$' "$CAPTURED.out.produced" \
|
||||
| jq -R --arg topic "$1" 'split(" ") | { metric: "\($topic)//\(.[1])", value: .[2]|tonumber, unit: .[3] }' -c \
|
||||
>> "$CAPTURED.measurements.jsonl"
|
||||
set -o pipefail
|
||||
|
||||
normalize_measurements "$CAPTURED"
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue