diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2021-04-14 09:14:51 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-14 09:14:51 -0400 |
commit | 96ad84fd5a7648b55556043dc4d251e9c6be1819 (patch) | |
tree | 21e8b08086df87fdca14e76a87f62b15eca80f4e /contrib | |
parent | defb29b72c5f0b7047f6a82c06ba24629643565a (diff) | |
parent | 31e31aa9dd59668d3dee1569111ac0a793c68a61 (diff) | |
download | podman-96ad84fd5a7648b55556043dc4d251e9c6be1819.tar.gz podman-96ad84fd5a7648b55556043dc4d251e9c6be1819.tar.bz2 podman-96ad84fd5a7648b55556043dc4d251e9c6be1819.zip |
Merge pull request #10017 from edsantiago/compose_test_flakes_again
compose test: try to get useful data from flakes
Diffstat (limited to 'contrib')
-rwxr-xr-x | contrib/cirrus/logformatter | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/contrib/cirrus/logformatter b/contrib/cirrus/logformatter index 3fa0e5618..5156f9f8a 100755 --- a/contrib/cirrus/logformatter +++ b/contrib/cirrus/logformatter @@ -243,11 +243,17 @@ END_HTML $cirrus_task = $1; } - # BATS handling (used also for apiv2 tests, which emit TAP output) - if ($line =~ /^1\.\.(\d+)$/ || $line =~ m!/test-apiv2!) { + # BATS handling. This will recognize num_tests both at start and end + if ($line =~ /^1\.\.(\d+)$/) { $looks_like_bats = 1; $bats_count{expected_total} = $1; } + # Since the number of tests can't always be predicted, recognize + # some leading text strings that indicate BATS output to come. + elsif ($line =~ /^TAP\s+version\s/ || $line =~ m!/test-apiv2!) { + $looks_like_bats = 1; + $bats_count{expected_total} = -1; # Expect to be overridden at end! + } if ($looks_like_bats) { my $css; |