aboutsummaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2020-04-15 10:50:15 -0700
committerGitHub <noreply@github.com>2020-04-15 10:50:15 -0700
commitef297d466e81b1fbdb5472f7f36e5903f66c959f (patch)
treeab8bd98924ae2bc9dce6205d9631be2eaae762cb /contrib
parent9b78bf9293bd7920b60aa0bf41fa40f9200f54ff (diff)
parent55eea9127a845e2a7f3db04f0c7a10ae5b3ef0f6 (diff)
downloadpodman-ef297d466e81b1fbdb5472f7f36e5903f66c959f.tar.gz
podman-ef297d466e81b1fbdb5472f7f36e5903f66c959f.tar.bz2
podman-ef297d466e81b1fbdb5472f7f36e5903f66c959f.zip
Merge pull request #5767 from edsantiago/logformat_add_anchors_and_apiv2
logformat: handle apiv2 results, add anchor links
Diffstat (limited to 'contrib')
-rwxr-xr-xcontrib/cirrus/logformatter8
1 files changed, 6 insertions, 2 deletions
diff --git a/contrib/cirrus/logformatter b/contrib/cirrus/logformatter
index 6a86f6a49..738d2e19d 100755
--- a/contrib/cirrus/logformatter
+++ b/contrib/cirrus/logformatter
@@ -220,8 +220,8 @@ END_HTML
$cirrus_task = $1;
}
- # BATS handling
- if ($line =~ /^1\.\.\d+$/) {
+ # BATS handling (used also for apiv2 tests, which emit TAP output)
+ if ($line =~ /^1\.\.\d+$/ || $line =~ m!/test-apiv2!) {
$looks_like_bats = 1;
}
if ($looks_like_bats) {
@@ -234,6 +234,10 @@ END_HTML
elsif ($line =~ /^#\s/) { $css = 'log' }
if ($css) {
+ # Make it linkable, e.g. foo.html#t--00001
+ if ($line =~ /^(not\s+)?ok\s+(\d+)/) {
+ $line = sprintf("<a name='t--%05d'>%s</a>", $2, $line);
+ }
$line = "<span class='bats-$css'>$line</span>";
}