From a0af13cc03275e3ca788b6c8e9fdcc7ffb19d548 Mon Sep 17 00:00:00 2001 From: des Date: Thu, 8 Nov 2007 21:32:42 +0000 Subject: [PATCH] Nit git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2242 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- varnish-tools/regress/lib/Varnish/Test/Case.pm | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/varnish-tools/regress/lib/Varnish/Test/Case.pm b/varnish-tools/regress/lib/Varnish/Test/Case.pm index 11f1b8a5..c57fd8fd 100644 --- a/varnish-tools/regress/lib/Varnish/Test/Case.pm +++ b/varnish-tools/regress/lib/Varnish/Test/Case.pm @@ -168,9 +168,8 @@ sub run($;@) { no strict 'refs'; my @tests = @{ref($self)."::TESTS"}; - if (!@tests) { - @tests = sort grep {/^test(\w+)/} (keys %{ref($self) . '::'}); - } + @tests = sort grep {/^test(\w+)/} (keys %{ref($self) . '::'}) + unless @tests; $self->{'start'} = [gettimeofday()]; foreach my $method (@tests) { eval { -- 2.39.5