From c7148e2f6ec4ef1f9c718d985acde23d292f775b Mon Sep 17 00:00:00 2001 From: "David E. Wheeler" Date: Tue, 16 Oct 2012 16:18:01 -0700 Subject: [PATCH] Skip the .init and .spec files. They are not Perl. Maybe distribution-related stuff should go into another directory? `dist` perhaps? --- t/01-basic.t | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/t/01-basic.t b/t/01-basic.t index 88d8bc19c..3273b5c71 100644 --- a/t/01-basic.t +++ b/t/01-basic.t @@ -18,7 +18,7 @@ my @test_files = grep { /\.t$/ } readdir $dh; closedir $dh or warn qq{Could not close the 't' directory: $!\n}; opendir $dh, 'scripts' or die qq{Could not open the 'scripts' directory}; -my @script_files = grep { /^[a-z]/ and ! /\.rc$/ } readdir $dh; +my @script_files = grep { /^[a-z]/ and ! /\.(?:rc|init|spec)$/ } readdir $dh; closedir $dh or warn qq{Could not close the 'scripts' directory: $!\n}; plan tests => @important_files + @test_files + @script_files; -- 2.39.5