mirror of
https://github.com/containers/podman.git
synced 2025-06-23 02:18:13 +08:00
logformatter: proper status color for failed tests
Fix an oops in my ginkgo-v2 handling: subtest-status was getting re-reset back to "passed", resulting in incorrect and misleading green titles on failed tests. Signed-off-by: Ed Santiago <santiago@redhat.com>
This commit is contained in:
@ -563,6 +563,7 @@ END_HTML
|
|||||||
print { $out_fh } "</div>\n";
|
print { $out_fh } "</div>\n";
|
||||||
}
|
}
|
||||||
$after_divider = 1;
|
$after_divider = 1;
|
||||||
|
$subtest_status = 'passed'; # until proven otherwise
|
||||||
|
|
||||||
print { $out_fh } "</pre>\n<hr />\n<pre>\n";
|
print { $out_fh } "</pre>\n<hr />\n<pre>\n";
|
||||||
# Always show timestamp at start of each new test
|
# Always show timestamp at start of each new test
|
||||||
@ -614,7 +615,6 @@ END_HTML
|
|||||||
|
|
||||||
# Make FAILED and SKIPPING visible. (Only works with ginkgo -p;
|
# Make FAILED and SKIPPING visible. (Only works with ginkgo -p;
|
||||||
# without -p, status is at the bottom of the test block)
|
# without -p, status is at the bottom of the test block)
|
||||||
$subtest_status = 'passed';
|
|
||||||
if ($line =~ s!^(.*\[(SKIPPED|FAILED|FLAKEY).*\].*)!<span class="log-\L$2\E">$1</span>!) {
|
if ($line =~ s!^(.*\[(SKIPPED|FAILED|FLAKEY).*\].*)!<span class="log-\L$2\E">$1</span>!) {
|
||||||
$subtest_status = lc($2);
|
$subtest_status = lc($2);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user