Merge pull request #18789 from edsantiago/logformatter_fix_h2

logformatter: proper status color for failed tests
This commit is contained in:
OpenShift Merge Robot 2023-06-05 10:32:16 -04:00 committed by GitHub
commit 18eb74fd4e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -563,6 +563,7 @@ END_HTML
print { $out_fh } "</div>\n";
}
$after_divider = 1;
$subtest_status = 'passed'; # until proven otherwise
print { $out_fh } "</pre>\n<hr />\n<pre>\n";
# 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;
# 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>!) {
$subtest_status = lc($2);
}