File tree Expand file tree Collapse file tree 2 files changed +13
-10
lines changed Expand file tree Collapse file tree 2 files changed +13
-10
lines changed Original file line number Diff line number Diff line change @@ -13,8 +13,7 @@ OVERVIEW
13
13
14
14
Build: {{ misc_macros.valid_badge(build.valid) }}
15
15
{% if build .tests %}
16
- Tests: {{ test_macros.waived_status_badge(build.tests_root.waived,
17
- build.tests_root.status) }}
16
+ Tests: {{ test_macros.test_status(build.tests_root.waived_status_nodes) }}
18
17
{% endif %}
19
18
20
19
BUILD
Original file line number Diff line number Diff line change 37
37
reject("none") | join(" ") | default(test.id, true) -}}
38
38
{% endmacro %}
39
39
40
+ {% macro test_status (waived_status_nodes ) %}
41
+ {% for waived , status_nodes in waived_status_nodes .items () %}
42
+ {% for status , nodes in status_nodes .items () %}
43
+ {% if nodes %}
44
+ {{- " " + waived_status_emoji(waived, status) +
45
+ " " + (nodes | length | string) -}}
46
+ {% endif %}
47
+ {% endfor %}
48
+ {% endfor %}
49
+ {% endmacro %}
50
+
40
51
{% macro container_summary (container , max_list_len ) %}
41
52
{% if container .tests %}
42
53
{{- "\nTESTS" }}
43
54
{% set waived_status_nodes = container .tests_root .waived_status_nodes %}
44
55
{{- "\n Status" }}
45
56
{{- "\n " -}}
46
- {% for waived , status_nodes in waived_status_nodes .items () %}
47
- {% for status , nodes in status_nodes .items () %}
48
- {% if nodes %}
49
- {{- " " + waived_status_emoji(waived, status) +
50
- " " + (nodes | length | string) -}}
51
- {% endif %}
52
- {% endfor %}
53
- {% endfor %}
57
+ {{ test_status(waived_status_nodes) }}
54
58
{{- "" }}
55
59
{% set errored_nodes = waived_status_nodes [false ]["ERROR" ] %}
56
60
{% if errored_nodes %}
You can’t perform that action at this time.
0 commit comments