aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2017-10-02 16:48:21 +0200
committerMichał Górny <mgorny@gentoo.org>2017-10-02 16:54:33 +0200
commit7c0ec99f0284de9f6692c93361737697218efda6 (patch)
treed127416a93ce4fcf4b2505eb3421b0c97c892a65 /pkgcheck2html
parentUpdate results, err/warn on bad package moves (diff)
downloadqa-scripts-7c0ec99f0284de9f6692c93361737697218efda6.tar.gz
qa-scripts-7c0ec99f0284de9f6692c93361737697218efda6.tar.bz2
qa-scripts-7c0ec99f0284de9f6692c93361737697218efda6.zip
pkgcheck2html: Support staging class warnings
Diffstat (limited to 'pkgcheck2html')
-rw-r--r--pkgcheck2html/output.html.jinja5
-rwxr-xr-xpkgcheck2html/pkgcheck2html.py3
2 files changed, 6 insertions, 2 deletions
diff --git a/pkgcheck2html/output.html.jinja b/pkgcheck2html/output.html.jinja
index e04d27e..f8d6bf5 100644
--- a/pkgcheck2html/output.html.jinja
+++ b/pkgcheck2html/output.html.jinja
@@ -9,7 +9,7 @@
<body>
<h1>QA check results</h1>
- {% if errors or warnings %}
+ {% if errors or warnings or staging %}
<div class="nav">
<h2>issues</h2>
@@ -20,6 +20,9 @@
{% for g in warnings %}
<li class="warn"><a href="#{{ g|join('/') }}">{{ g|join('/') }}</a></li>
{% endfor %}
+ {% for g in staging %}
+ <li class="staging"><a href="#{{ g|join('/') }}">{{ g|join('/') }}</a></li>
+ {% endfor %}
</ul>
</div>
{% endif %}
diff --git a/pkgcheck2html/pkgcheck2html.py b/pkgcheck2html/pkgcheck2html.py
index 44a9c2b..da5dee5 100755
--- a/pkgcheck2html/pkgcheck2html.py
+++ b/pkgcheck2html/pkgcheck2html.py
@@ -1,6 +1,6 @@
#!/usr/bin/env python
# vim:se fileencoding=utf8 :
-# (c) 2015-2016 Michał Górny
+# (c) 2015-2017 Michał Górny
# 2-clause BSD license
import argparse
@@ -126,6 +126,7 @@ def main(*args):
out = t.render(
results = deep_group(results),
warnings = list(find_of_class(results, 'warn')),
+ staging = list(find_of_class(results, 'staging')),
errors = list(find_of_class(results, 'err')),
ts = ts,
)