mirror of
https://github.com/moparisthebest/curl
synced 2024-08-13 17:03:50 -04:00
runtests: limit execessive logging/output
This commit is contained in:
parent
e237402c47
commit
e62ee60c7a
@ -2865,8 +2865,11 @@ sub singletest {
|
|||||||
$teststat[$testnum]=$why; # store reason for this test case
|
$teststat[$testnum]=$why; # store reason for this test case
|
||||||
|
|
||||||
if(!$short) {
|
if(!$short) {
|
||||||
|
if($skipped{$why} <= 3) {
|
||||||
|
# show only the first three skips for each reason
|
||||||
logmsg sprintf("test %03d SKIPPED: $why\n", $testnum);
|
logmsg sprintf("test %03d SKIPPED: $why\n", $testnum);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
timestampskippedevents($testnum);
|
timestampskippedevents($testnum);
|
||||||
return -1;
|
return -1;
|
||||||
@ -4738,14 +4741,20 @@ if($skipped && !$short) {
|
|||||||
# now show all test case numbers that had this reason for being
|
# now show all test case numbers that had this reason for being
|
||||||
# skipped
|
# skipped
|
||||||
my $c=0;
|
my $c=0;
|
||||||
|
my $max = 9;
|
||||||
for(0 .. scalar @teststat) {
|
for(0 .. scalar @teststat) {
|
||||||
my $t = $_;
|
my $t = $_;
|
||||||
if($teststat[$_] && ($teststat[$_] eq $r)) {
|
if($teststat[$_] && ($teststat[$_] eq $r)) {
|
||||||
|
if($c < $max) {
|
||||||
logmsg ", " if($c);
|
logmsg ", " if($c);
|
||||||
logmsg $_;
|
logmsg $_;
|
||||||
|
}
|
||||||
$c++;
|
$c++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if($c > $max) {
|
||||||
|
logmsg " and ".($c-$max)." more";
|
||||||
|
}
|
||||||
logmsg ")\n";
|
logmsg ")\n";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user