From b12cb1baf08ee7095343ddc47a73b0939f1e3710 Mon Sep 17 00:00:00 2001 From: "Jerry D. Hedden" Date: Tue, 2 Nov 2010 10:47:28 -0400 Subject: Excluding tests in sub-dirs For modules that are not built, exclude tests in sub-directories under /t. For example: cpan/Module-Build/t/actions/installdeps.t --- t/TEST | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 't/TEST') diff --git a/t/TEST b/t/TEST index d659828494..9ae25d3b11 100755 --- a/t/TEST +++ b/t/TEST @@ -394,7 +394,7 @@ sub _tests_from_manifest { my $extension = $2; if (!$::core || $t =~ m!^lib/[a-z]!) { if (defined $extension) { - $extension =~ s!/t$!!; + $extension =~ s!/t(:?/\S+)*$!!; # XXX Do I want to warn that I'm skipping these? next if $skip{$extension}; my $flat_extension = $extension; -- cgit v1.2.1