Commit 698b94d2 authored by Guido Günther's avatar Guido Günther

Allow to pass --timer to prove

so execution can be reported too.
parent 2a8515ea
......@@ -109,6 +109,10 @@ Generate an archive containing all the raw test results. The
filename given should end in either C<.bz>, C<.tar.gz> or
C<.tgz>
=item --timer
Print elapsed time after each test.
=back
=cut
......@@ -136,6 +140,7 @@ my $quiet = 0;
my $help = 0;
my $force = 0;
my $debug = 0;
my $timer = 0;
my $archive;
my $config = catfile($confdir, "default.cfg");
my $format = "text";
......@@ -149,7 +154,8 @@ if (!GetOptions("verbose" => \$verbose,
"config=s" => \$config,
"force" => \$force,
"format=s" => \$format,
"testdir=s" => \$testdir) || $help) {
"testdir=s" => \$testdir,
"timer" => \$timer) || $help) {
pod2usage(-verbose => $help,
-output => $help ? \*STDOUT : \*STDERR,
-exitval => $help ? 0 : 1);
......@@ -204,6 +210,9 @@ if ($format eq "xml") {
-output => \*STDERR);
}
if ($timer) {
push @newargv, "--timer";
}
# This env variable is the only way to pass config into
# the Sys::Virt::TCK module from here
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment