File tree Expand file tree Collapse file tree 3 files changed +10
-3
lines changed Expand file tree Collapse file tree 3 files changed +10
-3
lines changed Original file line number Diff line number Diff line change 2
2
3
3
dir=" $( cd " $( dirname " $0 " ) " && pwd) "
4
4
5
- retesteth $@ -- --testpath $dir /tests --datadir $dir /config --clients mantis
5
+ separator=" --"
6
+ if [[ $@ =~ " --" ]]; then
7
+ separator=" "
8
+ fi
9
+
10
+ retesteth $@ $separator --testpath $dir /tests --datadir $dir /config --clients mantis
Original file line number Diff line number Diff line change @@ -28,10 +28,12 @@ function run_and_annotate {
28
28
if [[ -z " $summary " ]]; then
29
29
summary=" retesteth crashed; check the artifacts"
30
30
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" )
31
33
32
34
cat << EOF | buildkite-agent annotate --context "retesteth-$1 " --style "$style "
33
35
<details>
34
- <summary>retesteth: $1 </summary>
36
+ <summary>retesteth: $1 -- $passed -- $failed </summary>
35
37
<pre class="term"><code>
36
38
$summary
37
39
</code></pre>
You can’t perform that action at this time.
0 commit comments