$specver{$1}{$2}= $3;
} elsif (m/^--machine-readable-output=(.*)$/) {
$mro= $1;
- open MRO, "> $mro.new" or die "$mro.new $!";
} elsif (m/^--html-dir=(.*)$/) {
$htmldir= $1;
} elsif (m/^--info-headers$/) {
$c{ReportTrailer}
END
-
- print $header_text, "\n", $body_text;
}
our %heisenjustified;
rename "$htmlout.new", $htmlout or die $!;
}
-db_begin_work($dbh_tests, []);
-findspecflight();
-my $fi= examineflight($specflight);
-my @fails= justifyfailures($fi);
-printout($fi, @fails);
-htmlout($fi);
+db_retry($dbh_tests, [], sub {
+ if (defined $mro) {
+ open MRO, "> $mro.new" or die "$mro.new $!";
+ }
+ findspecflight();
+ my $fi= examineflight($specflight);
+ my @fails= justifyfailures($fi);
+ printout($fi, @fails);
+ htmlout($fi);
+});
+
+print $header_text, "\n", $body_text;
if (defined $mro) {
close MRO or die $!;