mirror of
https://github.com/containers/podman.git
synced 2025-06-28 06:18:57 +08:00
Merge pull request #5767 from edsantiago/logformat_add_anchors_and_apiv2
logformat: handle apiv2 results, add anchor links
This commit is contained in:
@ -220,8 +220,8 @@ END_HTML
|
|||||||
$cirrus_task = $1;
|
$cirrus_task = $1;
|
||||||
}
|
}
|
||||||
|
|
||||||
# BATS handling
|
# BATS handling (used also for apiv2 tests, which emit TAP output)
|
||||||
if ($line =~ /^1\.\.\d+$/) {
|
if ($line =~ /^1\.\.\d+$/ || $line =~ m!/test-apiv2!) {
|
||||||
$looks_like_bats = 1;
|
$looks_like_bats = 1;
|
||||||
}
|
}
|
||||||
if ($looks_like_bats) {
|
if ($looks_like_bats) {
|
||||||
@ -234,6 +234,10 @@ END_HTML
|
|||||||
elsif ($line =~ /^#\s/) { $css = 'log' }
|
elsif ($line =~ /^#\s/) { $css = 'log' }
|
||||||
|
|
||||||
if ($css) {
|
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>";
|
$line = "<span class='bats-$css'>$line</span>";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -355,7 +355,7 @@ done
|
|||||||
|
|
||||||
if [ -n "$service_pid" ]; then
|
if [ -n "$service_pid" ]; then
|
||||||
kill $service_pid
|
kill $service_pid
|
||||||
wait -f $service_pid
|
wait $service_pid
|
||||||
fi
|
fi
|
||||||
|
|
||||||
test_count=$(<$testcounter_file)
|
test_count=$(<$testcounter_file)
|
||||||
|
Reference in New Issue
Block a user