);
- if ($l4 =~ /^\[\+\d+s\] *(\[It\]\s*)?([a-zA-Z-].*\S)/) {
- # Yes! From the subtest name, make a page anchor,
- # and link to our **CURRENT LINE**, the status one.
- my $id = make_id(escapeHTML($2), 'anchor');
- $line = "$line
";
- }
- else {
- # Line 4 does not look like a test name.
- # This warning will only likely be seen by Ed.
- warn "$ME: line $.: unexpected line three down from dashes:\n";
- warn " $line\n $l2\n $l3\n $l4\n";
- }
- }
- }
- else {
- # Line 2 is one of the other non-test-result things that
- # ginkgo emits after a row of dashes. Set this so our
- # test name highlighter (below) does not false-trigger.
- $after_divider = 999;
- }
-
- # Reset back to where we were in the input stream, and continue.
- seek STDIN, $stream_pos, 0;
-
# FIXME: gray out entire block if it's skipped?
}
- # Two and four lines after each divider, there's a test module
- # Description and a subtest name. Highlight both.
- if ($after_divider == 2 || $after_divider == 4) {
- my $level = 2 + ($after_divider == 4);
- $line = "$line";
+ # Four lines after each divider, there's a test name. Make it
+ # an anchor so we can link to it later.
+ if ($after_divider == 4) {
+ # Sigh. There is no actual marker. Assume that anything with
+ ## two leading spaces then alpha or hyphen (not slashes) is
+ ## a test name.
+ if ($line =~ /^ (\[It\]\s*)?([a-zA-Z-].*\S)/) {
+ my $id = make_id($2, 'anchor');
+
+ $line = "$line
";
+ }
}
++$after_divider;
diff --git a/contrib/cirrus/logformatter.t b/contrib/cirrus/logformatter.t
index 7ce0f9f7e3..3bc8344257 100755
--- a/contrib/cirrus/logformatter.t
+++ b/contrib/cirrus/logformatter.t
@@ -128,7 +128,7 @@ ok 4 blah
[+0006s] CGO_ENABLED=1 GOOS=linux GOARCH=amd64 go build -ldflags '-X github.com/containers/podman/v4/libpod/define.gitCommit=074143b0fac7af72cd92048d27931a92fe745084 -X github.com/containers/podman/v4/libpod/define.buildInfo=1681728434 -X github.com/containers/podman/v4/libpod/config._installPrefix=/usr/local -X github.com/containers/podman/v4/libpod/config._etcDir=/usr/local/etc -X github.com/containers/podman/v4/pkg/systemd/quadlet._binDir=/usr/local/bin -X github.com/containers/common/pkg/config.additionalHelperBinariesDir= ' -o test/goecho/goecho ./test/goecho
[+0006s] ./hack/install_catatonit.sh
[+0270s] ------------------------------
-[+0271s] * [3.327 seconds]
+[+0271s] ⢠[3.327 seconds]
[+0271s] Podman restart
[+0271s] /var/tmp/go/src/github.com/containers/podman/test/e2e/restart_test.go:14
[+0271s] podman restart non-stop container with short timeout
@@ -160,10 +160,10 @@ ok 4 blah
-[+0271s] * [3.327 seconds]
- Podman restart
+[+0271s] ⢠[3.327 seconds]
+ Podman restart
/var/tmp/go/src/github.com/containers/podman/test/e2e/restart_test.go:14
- podman restart non-stop container with short timeout
+ podman restart non-stop container with short timeout
/var/tmp/go/src/github.com/containers/podman/test/e2e/restart_test.go:148
[+0271s]
Timeline >>