Skip to content

Commit 3b0f727

Browse files
author
Jaap van der Plas
committed
add some quick n dirty parsing to summarize the retesteth reports
1 parent 7dd83f9 commit 3b0f727

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test-ets.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,12 @@ function run_and_annotate {
2828
if [[ -z "$summary" ]]; then
2929
summary="retesteth crashed; check the artifacts"
3030
fi
31+
passed=$(grep -oP 'Total Tests Run: \d+' "retesteth-$1-log.txt")
32+
failed=$(grep -oP 'TOTAL ERRORS DETECTED: \d+' "retesteth-$1-log.txt")
3133

3234
cat <<EOF | buildkite-agent annotate --context "retesteth-$1" --style "$style"
3335
<details>
34-
<summary>retesteth: $1</summary>
36+
<summary>retesteth: $1 -- $passed -- $failed</summary>
3537
<pre class="term"><code>
3638
$summary
3739
</code></pre>

0 commit comments

Comments
 (0)