Permalink
Browse files

Make filenames more specific when running tests.

This should avoid problems when people run tests with usernames or paths that
include the name of the test.  This was seen most often with the t0, t1 and t2
tests.
  • Loading branch information...
1 parent ff97a3f commit 88f3ff070221425e09b5c7f4f8b226c57d4299e6 @pjcj committed May 23, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/Devel/Cover/Test.pm
View
@@ -69,7 +69,7 @@ sub get_params
$self->{criteria} = $self->{criteria}[-1];
- $self->{select} ||= "-select $self->{test}";
+ $self->{select} ||= "-select /tests/$self->{test}\\b";
$self->{test_parameters} = "$self->{select}"
. " -ignore blib Devel/Cover @{$self->{ignore}}"
. " -merge 0 -coverage $self->{criteria} "

0 comments on commit 88f3ff0

Please sign in to comment.