Skip to content

Commit df8999f

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

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

test-ets.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,16 @@ 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>
37+
retesteth: $1
38+
$passed
39+
$failed
40+
</summary>
3541
<pre class="term"><code>
3642
$summary
3743
</code></pre>

0 commit comments

Comments
 (0)