The flight numbers quoted in these step failure summaries may
sometimes be suffixed with `-bisect' to show that the indicated flight
was part of a bisection attempt, rather than a main test flight.
+
+
+Email information headers
+-------------------------
+
+Test report emails sent by osstest have some extra information in the
+email headers, where applicable:
+
+X-Osstest-Versions-This:
+ osstest=cc8b79ce9586d2b0fbddbd4260e876eab1d408d4
+X-Osstest-Versions-That:
+ osstest=280a18b2b2612174e473a1c1a137ddd47c49aab9
+ ^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+ tree revision
+
+`This' is the version being tested, and `That' is the baseline.
heading=tmp/$flight.heading-info
: >$heading
-sgr_args+=" --include-begin=$heading"
+sgr_args+=" --info-headers --include-begin=$heading"
if $force_baseline; then
subject_prefix="[$branch baseline test] "
our (@blessings, @branches_also);
our $mro;
our $htmldir;
+our $want_info_headers;
our ($branch, $branches_cond_q);
our @allows;
our (@includebeginfiles,@includefiles);
open MRO, "> $mro.new" or die "$mro.new $!";
} elsif (m/^--html-dir=(.*)$/) {
$htmldir= $1;
+ } elsif (m/^--info-headers$/) {
+ $want_info_headers = 1;
} elsif (m/^--blessings?=(.*)$/) {
push @blessings, split ',', $1;
} elsif (m/^--branches-also?=(.*)$/) {
sub bodyprint { $body_text .= $_ foreach @_; }
sub bodyprintf { my $fmt = shift @_; $body_text .= sprintf $fmt, @_; }
+sub headerprint {
+ return unless $want_info_headers;
+ $header_text .= $_ foreach @_;
+}
+
sub printversions ($) {
my ($thisthat) = @_;
my ($sv) = $specver{$thisthat};
+ headerprint "X-Osstest-Versions-\u$thisthat:\n" if %$sv;
foreach my $k (sort keys %$sv) {
bodyprintf " %-${tl}s %s\n", $k, $sv->{$k};
+ headerprint " $k=$sv->{$k}\n";
print MRO "version $thisthat $k $sv->{$k}\n" or die $!;
}
}