mirror of
https://github.com/containers/podman.git
synced 2025-10-25 02:04:43 +08:00
compose test: try to get useful data from flakes
docker-compose test continues to flake even after #9961. Let's try to get some useful data from the failures, by: * adding -S (--show-error) to curl. With just -s (--silent), curl is completely quiet. With -S, it displays errors. (Not in TAP form, but I'm OK with that) * oops, adding safety checks to the fix from #9961 (it was inadvertently clobbering the curl exit status) And, as long as I'm in this code: logformatter was not highlighting these results, because the '1..N' TAP line needs to be spit out at the end. Have test-compose emit a 'TAP' header <http://testanything.org/> and make logformatter recognize it. Signed-off-by: Ed Santiago <santiago@redhat.com>
This commit is contained in:
@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user