From: des Date: Thu, 8 Nov 2007 21:32:42 +0000 (+0000) Subject: Nit X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a0af13cc03275e3ca788b6c8e9fdcc7ffb19d548;p=varnish Nit git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2242 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- 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 {