r25435: actually pass the statistics to the buildfarm output module
authorStefan Metzmacher <metze@samba.org>
Sun, 30 Sep 2007 08:26:53 +0000 (08:26 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 20:07:32 +0000 (15:07 -0500)
to calculate the SELFTEST RUNTIME correct

metze
(This used to be commit 12e485170909c8e09962aa2080b86455ad6509e5)

source4/selftest/output/buildfarm.pm
source4/selftest/selftest.pl

index cf30bce6c814d963be686e7780375cc1b127839f..a9077c3372197c34af3863acf2d34b18c07efcb0 100644 (file)
@@ -8,8 +8,8 @@ use Exporter;
 use strict;
 
 sub new($$$$) {
-       my ($class, $verbose, $immediate, $statistics) = @_;
-       my $self = { 
+       my ($class, $statistics) = @_;
+       my $self = {
                statistics => $statistics,
                test_output => {}
        };
index 2f4d15d00f4983772a49750120d1f6926f4e29a2..543fc314b00695e8d3f373f68f6e43680c2d26c8 100755 (executable)
@@ -694,7 +694,7 @@ sub teardown_env($)
 my $msg_ops;
 if ($opt_format eq "buildfarm") {
        require output::buildfarm;
-       $msg_ops = new output::buildfarm();
+       $msg_ops = new output::buildfarm($statistics);
 } elsif ($opt_format eq "plain") {
        require output::plain;
        $msg_ops = new output::plain($opt_verbose, $opt_immediate, $statistics);