Skip to content
Prev Previous commit
Next Next commit
Display skip notes for skipped tests
  • Loading branch information
coolreader18 committed May 27, 2020
commit 20877cff57a53b570d9d98f3e751649eb0e8b134
18 changes: 17 additions & 1 deletion _layouts/regrtests_results.html
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,23 @@ <h2 class="font-secondary">Summary:</span>
{% if case.result %}
<div class="cell {{case.result }} results-case-list-item text-mobile-right">
<span class="text-small text-muted d-mobile-none">RESULT:</span>
{{case.result }}
<span class="case-result">{{case.result }}</span>
{%- if case.result == "skipped" -%}
{%- assign note = case.note | default: result.note-%}
{%- assign lownote = note | downcase -%}
{%- if lownote contains "todo: rustpython" -%}
{%- assign note = lownote | remove: "todo: rustpython," | remove: "todo: rustpython:" | remove: "todo: rustpython" | strip -%}
{%- if note and note != "" %}
<span class="text-small text-muted d-mobile-none">TO RESOLVE:</span>
<span class="d-mobile-none case-note">{{ note }}</span>
{%- endif -%}
{%- elsif note == "implementation detail specific to cpython" -%}
<span class="text-small text-muted d-mobile-none">(CPython only)</span>
{%- else -%}
<span class="text-small text-muted d-mobile-none">not skipped by us:</span>
<span class="text-small d-mobile-none case-note">{{ note }}</span>
{%- endif -%}
{%- endif -%}
</div>
{% endif %}

Expand Down
4 changes: 2 additions & 2 deletions assets/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -315,12 +315,12 @@ ul.list-inline {
padding: 5px;
}

.passed::after {
.passed > .case-result::after {
content: " 🚀 👌";
padding: 5px;
}

.skipped::after {
.skipped > .case-result::after {
content: " 🤷‍♀️";
}

Expand Down